[PATCH] D144045: [InstCombine] Avoid sinking fdiv into a loop
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 02:46:41 PDT 2023
david-arm updated this revision to Diff 521590.
david-arm retitled this revision from "[InstCombine] avoid sinking fdiv into a loop " to "[InstCombine] Avoid sinking fdiv into a loop".
david-arm edited the summary of this revision.
david-arm added a comment.
- Address review comments by only applying the transformation when either a) we know the fmul lives in a loop and the fdiv is loop invariant, or b) when we know the fmul and fdiv live in the same block.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144045/new/
https://reviews.llvm.org/D144045
Files:
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/fmul.ll
llvm/test/Transforms/PhaseOrdering/X86/vdiv-nounroll.ll
llvm/test/Transforms/PhaseOrdering/X86/vdiv.ll
llvm/test/Transforms/PhaseOrdering/lto-licm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144045.521590.patch
Type: text/x-patch
Size: 24574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230512/47402e5c/attachment-0001.bin>
More information about the llvm-commits
mailing list