diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-15 07:51:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-15 07:51:19 +0000 |
commit | 6ccb5ef1b504e71b63219437f5bcf4856207949b (patch) | |
tree | 659307653e5f0ec980e873df08eb027d4c81df6c /lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | eeba3f5695e39ca970a7aeb161558575216005b2 (diff) |
temporarily revert r123526. While working on a follow-on patch I
realize that ConstantFoldTerminator doesn't preserve dominfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 3496aa20ab..72c8bf3047 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -1071,9 +1071,6 @@ bool CodeGenPrepare::OptimizeInst(Instruction *I) { if (CallInst *CI = dyn_cast<CallInst>(I)) return OptimizeCallInst(CI); - if (isa<TerminatorInst>(I)) - return ConstantFoldTerminator(I->getParent()); - return false; } |