summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-01-14 00:41:11 +0000
committerOwen Anderson <resistor@mac.com>2011-01-14 00:41:11 +0000
commite3ed20ce9cf706eb1840c0ea79935d6652701535 (patch)
treea0ff360a08879eb6c85d7d2bb781bc2a82921dd0
parent7f60dc1eb07e712f51b2768700263a32b1f184e3 (diff)
downloadbcm5719-llvm-e3ed20ce9cf706eb1840c0ea79935d6652701535.tar.gz
bcm5719-llvm-e3ed20ce9cf706eb1840c0ea79935d6652701535.zip
Rather than doing early instcombine, try doing early CSE instead. This should still handle
most important simplifications, as well as resolving phase ordering issues where instcombine would inhibit important CSE'ing opportunities, for instance on BitBench/drop3. llvm-svn: 123418
-rw-r--r--llvm/include/llvm/Support/StandardPasses.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/StandardPasses.h b/llvm/include/llvm/Support/StandardPasses.h
index 9ef5ff88511..9cd210e2b01 100644
--- a/llvm/include/llvm/Support/StandardPasses.h
+++ b/llvm/include/llvm/Support/StandardPasses.h
@@ -83,7 +83,7 @@ namespace llvm {
createStandardAliasAnalysisPasses(PM);
PM->add(createCFGSimplificationPass());
PM->add(createScalarReplAggregatesPass());
- PM->add(createInstructionCombiningPass());
+ PM->add(createEarlyCSEPass());
}
}
OpenPOWER on IntegriCloud