forked from OSchip/llvm-project
Correctly report modified status for DivRemPairs
Differential Revision: https://reviews.llvm.org/D81231
This commit is contained in:
parent
424510095d
commit
8405f6bcd4
|
@ -221,6 +221,7 @@ static bool optimizeDivRem(Function &F, const TargetTransformInfo &TTI,
|
||||||
NumRecomposed++;
|
NumRecomposed++;
|
||||||
// Note that we have left ((X / Y) * Y) around.
|
// Note that we have left ((X / Y) * Y) around.
|
||||||
// If it had other uses we could rewrite it as X - X % Y
|
// If it had other uses we could rewrite it as X - X % Y
|
||||||
|
Changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert((!E.isRemExpanded() || !HasDivRemOp) &&
|
assert((!E.isRemExpanded() || !HasDivRemOp) &&
|
||||||
|
|
Loading…
Reference in New Issue