[PATCH] D125774: [InstCombine] fold float trunc into exact itofp for small constants
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 01:24:21 PDT 2022
Allen updated this revision to Diff 437074.
Allen added a comment.
Add checking the step is loop-invariant, and its loop's trip count is actually related to the PHI
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125774/new/
https://reviews.llvm.org/D125774
Files:
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/fptrunc.ll
llvm/test/Transforms/InstCombine/sitofp.ll
llvm/test/Transforms/LoopVectorize/induction.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125774.437074.patch
Type: text/x-patch
Size: 9884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220615/bb6175b1/attachment.bin>
More information about the llvm-commits
mailing list