Addition of the PPC32 Pattern ISel. While it is far from complete, it will
be brought up to parity with the current simple ISel in the coming days.
Currently, -pattern-isel is required to trigger it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20805 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index dd40e13..75f1fc3 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -37,6 +37,8 @@
cl::opt<bool> EnablePPCLSR("enable-lsr-for-ppc",
cl::desc("Enable LSR for PPC (beta option!)"),
cl::Hidden);
+ cl::opt<bool> EnablePatternISel("pattern-isel", cl::Hidden,
+ cl::desc("Enable the pattern isel XXX FIXME"));
}
namespace {
@@ -96,6 +98,8 @@
if (LP64)
PM.add(createPPC64ISelSimple(*this));
+ else if (EnablePatternISel)
+ PM.add(createPPC32ISelPattern(*this));
else
PM.add(createPPC32ISelSimple(*this));