projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee443d
)
don't run GVN at -O1, GCC doesn't do it's equivalent at that optimization level.
author
Chris Lattner
<sabre@nondot.org>
Tue, 22 Dec 2009 04:47:41 +0000
(
04:47
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 22 Dec 2009 04:47:41 +0000
(
04:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91886
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/StandardPasses.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/StandardPasses.h
b/include/llvm/Support/StandardPasses.h
index 18be1addbf9d0a776518a9cf8f729cdd285bed5d..f233c18de3ba152a744af5d3cf1a0449cd57beec 100644
(file)
--- a/
include/llvm/Support/StandardPasses.h
+++ b/
include/llvm/Support/StandardPasses.h
@@
-137,7
+137,8
@@
namespace llvm {
if (UnrollLoops)
PM->add(createLoopUnrollPass()); // Unroll small loops
PM->add(createInstructionCombiningPass()); // Clean up after the unroller
- PM->add(createGVNPass()); // Remove redundancies
+ if (OptimizationLevel > 1)
+ PM->add(createGVNPass()); // Remove redundancies
PM->add(createMemCpyOptPass()); // Remove memcpy / form memset
PM->add(createSCCPPass()); // Constant prop with SCCP