turn on memset idiom recognition by default. Though there are still lots of
[oota-llvm.git] / include / llvm / Support / StandardPasses.h
index a608f2ceaba88e81da0d795e742fb23f8efc280b..7e32f1fbae7860dd79266e388185373b329e427a 100644 (file)
@@ -145,6 +145,7 @@ namespace llvm {
     PM->add(createLoopUnswitchPass(OptimizeSize || OptimizationLevel < 3));
     PM->add(createInstructionCombiningPass());  
     PM->add(createIndVarSimplifyPass());        // Canonicalize indvars
+    PM->add(createLoopIdiomPass());             // Recognize idioms like memset.
     PM->add(createLoopDeletionPass());          // Delete dead loops
     if (UnrollLoops)
       PM->add(createLoopUnrollPass());          // Unroll small loops