diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-01-31 16:33:33 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-01-31 16:33:33 +0000 |
commit | 24b77d11bccf474ef855bb0388f386c4d9d2ad64 (patch) | |
tree | 3cc968e75f9e13cbaee1cf34811c763eabbda183 | |
parent | bbdab7af5a6bd708e6f87aff4183d650f1017f9c (diff) | |
download | bcm5719-llvm-24b77d11bccf474ef855bb0388f386c4d9d2ad64.tar.gz bcm5719-llvm-24b77d11bccf474ef855bb0388f386c4d9d2ad64.zip |
simplify; NFC
llvm-svn: 259323
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index e713f902465..0705dec9b34 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/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; - - 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; |