diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2010-10-22 18:21:21 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2010-10-22 18:21:21 +0000 |
commit | cf3e9642899d901c650b5626d7d087362849bf05 (patch) | |
tree | a283074d6a0439693115b0fb9d468a53559bc704 /lib/Module | |
parent | d4cee7be038ca19f82d33d5ba24accbda55558ee (diff) | |
download | klee-cf3e9642899d901c650b5626d7d087362849bf05.tar.gz |
Disable loop index split pass for LLVM 2.9+
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@117117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/Optimize.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Module/Optimize.cpp b/lib/Module/Optimize.cpp index affe9392..1eadec26 100644 --- a/lib/Module/Optimize.cpp +++ b/lib/Module/Optimize.cpp @@ -129,7 +129,9 @@ static void AddStandardCompilePasses(PassManager &PM) { addPass(PM, createLoopRotatePass()); addPass(PM, createLICMPass()); // Hoist loop invariants addPass(PM, createLoopUnswitchPass()); // Unswitch loops. +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 9) addPass(PM, createLoopIndexSplitPass()); // Index split loops. +#endif // FIXME : Removing instcombine causes nestedloop regression. addPass(PM, createInstructionCombiningPass()); addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars |