Fix my previous patch (r163164). It does now what it is supposed to do:

Doesn't set MadeChange to TRUE if BypassSlowDivision doesn't change anything.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakub Staszak 2012-09-04 21:16:59 +00:00
parent 7b2d20d060
commit ed0e3a31e1

View File

@ -245,7 +245,6 @@ bool bypassSlowDivision(Function &F,
IntegerType *BypassType = cast<IntegerType>(BT->second);
MadeChange |= reuseOrInsertFastDiv(F, I, J, BypassType, UseDivOp,
UseSignedOp, DivCache);
MadeChange = true;
}
return MadeChange;