diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2012-09-04 21:16:59 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2012-09-04 21:16:59 +0000 |
commit | ed0e3a31e1dd201d87288c2e73fc74484d2e8c4d (patch) | |
tree | 8f350cbffdbba35e915e8483ba2d9474063e8698 /lib/Transforms/Utils/BypassSlowDivision.cpp | |
parent | 7b2d20d0600ffbc9ae6df67a18b6f6485ebceb54 (diff) |
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
Diffstat (limited to 'lib/Transforms/Utils/BypassSlowDivision.cpp')
-rw-r--r-- | lib/Transforms/Utils/BypassSlowDivision.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/BypassSlowDivision.cpp b/lib/Transforms/Utils/BypassSlowDivision.cpp index af0633c512..4130def1cb 100644 --- a/lib/Transforms/Utils/BypassSlowDivision.cpp +++ b/lib/Transforms/Utils/BypassSlowDivision.cpp @@ -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; |