summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-02-06 21:56:47 +0000
committerTim Northover <tnorthover@apple.com>2017-02-06 21:56:47 +0000
commit0e6afbdd77f5575b46640a48f35b8c53a2357732 (patch)
treefd3687820f10d30c703e7665a045198ff9809b01 /llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
parent90562dfb508e15f1af6dcc0c7f703f48cee5cf02 (diff)
downloadbcm5719-llvm-0e6afbdd77f5575b46640a48f35b8c53a2357732.tar.gz
bcm5719-llvm-0e6afbdd77f5575b46640a48f35b8c53a2357732.zip
GlobalISel: legalize G_INSERT instructions
We don't handle all cases yet (see arm64-fallback.ll for an example), but this is enough to cover most common C++ code so it's a good place to start. llvm-svn: 294247
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
index e49662075ed..e757f2587ac 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
@@ -41,6 +41,7 @@ LegalizerInfo::LegalizerInfo() : TablesInitialized(false) {
DefaultActions[TargetOpcode::G_STORE] = NarrowScalar;
DefaultActions[TargetOpcode::G_BRCOND] = WidenScalar;
+ DefaultActions[TargetOpcode::G_INSERT] = NarrowScalar;
}
void LegalizerInfo::computeTables() {
OpenPOWER on IntegriCloud