[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
Tue Jul 5 05:00:59 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:399
+ for (Use &U : make_early_inc_range(PN->uses())) {
+ if (isa<FPToSIInst>(U.getUser())) {
+ U.getUser()->replaceAllUsesWith(NewPHI);
----------------
What guarantees that this is an fptosi to the correct type (i32 here)?
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