[PATCH] D144671: [InstCombine] prevent miscompiles from select-of-div/rem transform
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 06:11:39 PST 2023
spatel updated this revision to Diff 500754.
spatel edited the summary of this revision.
spatel added a comment.
Patch updated:
When necessary, freeze the select condition value to preserve the optimization.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144671/new/
https://reviews.llvm.org/D144671
Files:
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select-divrem.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144671.500754.patch
Type: text/x-patch
Size: 5524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230227/a5d66bbf/attachment.bin>
More information about the llvm-commits
mailing list