[PATCH] D129140: [IndVars] Directly use integer induction for FPToSI of float induction.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 09:24:30 PDT 2022


fhahn marked an inline comment as done.
fhahn added a comment.





================
Comment at: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:401
+      if (FPToSI && FPToSI->getType() == NewPHI->getType()) {
+        U.getUser()->replaceAllUsesWith(NewPHI);
+        continue;
----------------
nikic wrote:
> Add `FPToSI` to `DeadInsts`?
Done, thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129140



More information about the llvm-commits mailing list