diff options
author | Ehsan Amiri <amehsan@ca.ibm.com> | 2016-04-07 15:30:55 +0000 |
---|---|---|
committer | Ehsan Amiri <amehsan@ca.ibm.com> | 2016-04-07 15:30:55 +0000 |
commit | 4701a91e59270639341fde8f34eaf2773e1c74c6 (patch) | |
tree | 3d4977337e05df359b556b6b3e144bb5ce9fd8a7 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 74031ba1e9470d9b108aa5256d326c5b0053b004 (diff) | |
download | bcm5719-llvm-4701a91e59270639341fde8f34eaf2773e1c74c6.tar.gz bcm5719-llvm-4701a91e59270639341fde8f34eaf2773e1c74c6.zip |
[PPC] Enable transformations in PPCPassConfig::addIRPasses at O2
http://reviews.llvm.org/D18562
A large number of testcases has been modified so they pass after this test.
One testcase is deleted, because I realized even after undoing the original
change that was committed with this testcase, the testcase still passes. So
I removed it. The change to one other testcase (test/CodeGen/PowerPC/pr25802.ll)
is an arbitrary change to keep it passing. Given the original intention of the
testcase, and the fact that fixing it will require some time to change the testcase,
we concluded that this quick change will be enough.
llvm-svn: 265683
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 5d47e0e3ebd..3814b7e8a1a 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -318,7 +318,7 @@ void PPCPassConfig::addIRPasses() { if (UsePrefetching) addPass(createLoopDataPrefetchPass()); - if (TM->getOptLevel() == CodeGenOpt::Aggressive && EnableGEPOpt) { + if (TM->getOptLevel() >= CodeGenOpt::Default && EnableGEPOpt) { // Call SeparateConstOffsetFromGEP pass to extract constants within indices // and lower a GEP with multiple indices to either arithmetic operations or // multiple GEPs with single index. |