[PATCH] D129756: [IndVars] Directly use unsigned integer induction for FPToUI/FPToSI of float induction

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 05:58:36 PDT 2022


Allen updated this revision to Diff 444624.
Allen added a comment.

update according comment
fptoui we used getUnsignedRange() and getActiveBits()
fptosi used getSignedRange() and getMinSignedBits()


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129756/new/

https://reviews.llvm.org/D129756

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: D129756.444624.patch
Type: text/x-patch
Size: 5680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220714/5543a459/attachment.bin>


More information about the llvm-commits mailing list