aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-24 16:37:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-24 16:37:40 +0000
commitd721520e4c5d8ad71310a34727a567c3d74e7c08 (patch)
tree501b8f6f58655462d3a8f970500f64bd633f240a /lib/Transforms/Utils
parent3706eda52c4565016959902a3f5aaf7271516286 (diff)
downloadexternal_llvm-d721520e4c5d8ad71310a34727a567c3d74e7c08.zip
external_llvm-d721520e4c5d8ad71310a34727a567c3d74e7c08.tar.gz
external_llvm-d721520e4c5d8ad71310a34727a567c3d74e7c08.tar.bz2
Push analysis passes to InstSimplify when they're around anyways.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 8f7314d..56a2d92 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -413,7 +413,7 @@ bool llvm::SimplifyInstructionsInBlock(BasicBlock *BB, const DataLayout *TD,
Instruction *Inst = BI++;
WeakVH BIHandle(BI);
- if (recursivelySimplifyInstruction(Inst, TD)) {
+ if (recursivelySimplifyInstruction(Inst, TD, TLI)) {
MadeChange = true;
if (BIHandle != BI)
BI = BB->begin();