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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 02:11:01 PDT 2022


nikic added inline comments.


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


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