[PATCH] D81231: Correctly report modified status for DivRemPairs
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 07:13:42 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8405f6bcd488: Correctly report modified status for DivRemPairs (authored by serge-sans-paille).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81231/new/
https://reviews.llvm.org/D81231
Files:
llvm/lib/Transforms/Scalar/DivRemPairs.cpp
Index: llvm/lib/Transforms/Scalar/DivRemPairs.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/DivRemPairs.cpp
+++ llvm/lib/Transforms/Scalar/DivRemPairs.cpp
@@ -221,6 +221,7 @@
NumRecomposed++;
// Note that we have left ((X / Y) * Y) around.
// If it had other uses we could rewrite it as X - X % Y
+ Changed = true;
}
assert((!E.isRemExpanded() || !HasDivRemOp) &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81231.268792.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/cd9ff949/attachment.bin>
More information about the llvm-commits
mailing list