simplify; NFC
authorSanjay Patel <spatel@rotateright.com>
Sun, 31 Jan 2016 16:33:33 +0000 (16:33 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 31 Jan 2016 16:33:33 +0000 (16:33 +0000)
llvm-svn: 259323

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

index e713f90..0705dec 100644 (file)
@@ -3043,14 +3043,11 @@ combineInstructionsOverFunction(Function &F, InstCombineWorklist &Worklist,
     DEBUG(dbgs() << "\n\nINSTCOMBINE ITERATION #" << Iteration << " on "
                  << F.getName() << "\n");
 
-    bool Changed = false;
-    if (prepareICWorklistFromFunction(F, DL, &TLI, Worklist))
-      Changed = true;
-
-    InstCombiner IC(Worklist, &Builder, F.optForMinSize(),
-                    AA, &AC, &TLI, &DT, DL, LI);
-    if (IC.run())
-      Changed = true;
+    bool Changed = prepareICWorklistFromFunction(F, DL, &TLI, Worklist);
+
+    InstCombiner IC(Worklist, &Builder, F.optForMinSize(), AA, &AC, &TLI, &DT,
+                    DL, LI);
+    Changed |= IC.run();
 
     if (!Changed)
       break;