From 9cba4166c035dcafde9b22c28f81f8f9e8528edb Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sun, 31 Jan 2016 16:33:33 +0000 Subject: [PATCH] simplify; NFC llvm-svn: 259323 --- lib/Transforms/InstCombine/InstructionCombining.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index e713f902465..0705dec9b34 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -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; + bool Changed = prepareICWorklistFromFunction(F, DL, &TLI, Worklist); - InstCombiner IC(Worklist, &Builder, F.optForMinSize(), - AA, &AC, &TLI, &DT, DL, LI); - if (IC.run()) - Changed = true; + InstCombiner IC(Worklist, &Builder, F.optForMinSize(), AA, &AC, &TLI, &DT, + DL, LI); + Changed |= IC.run(); if (!Changed) break;