[PATCH] D129191: [IndVars] Eliminate redundant type cast between integer and float

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 05:29:31 PDT 2022


Allen created this revision.
Allen added reviewers: reames, nikic, spatel, fhahn.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Allen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Recompute the range: match for fptosi of sitofp, and then query the range of the input to the sitofp
according the comment on D129140 <https://reviews.llvm.org/D129140>.

Fixes https://github.com/llvm/llvm-project/issues/55505.


https://reviews.llvm.org/D129191

Files:
  llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
  llvm/test/Transforms/IndVarSimplify/floating-point-small-iv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129191.442530.patch
Type: text/x-patch
Size: 3937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220706/64ecc5c3/attachment.bin>


More information about the llvm-commits mailing list