llvm.org GIT mirror llvm / ed70cc3
$ svn merge -c 113848 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r113848 into '.': U lib/CodeGen/PeepholeOptimizer.cpp must not peephole away side effects git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_28@113913 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 10 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
271271 MII = I->begin(), ME = I->end(); MII != ME; ) {
272272 MachineInstr *MI = &*MII;
273273
274 if (MI->getDesc().isCompare()) {
274 if (MI->getDesc().isCompare() &&
275 !MI->getDesc().hasUnmodeledSideEffects()) {
275276 ++MII; // The iterator may become invalid if the compare is deleted.
276277 Changed |= OptimizeCmpInstr(MI, MBB);
277278 } else {