forked from OSchip/llvm-project
don't run GVN at -O1, GCC doesn't do it's equivalent at that optimization level.
llvm-svn: 91886
This commit is contained in:
parent
9b7d99eb76
commit
f3ef2cada7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue