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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 00:17:50 PDT 2022


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyIndVar.cpp:932
+    if (replaceFloatIVWithIntegerIV(UseInst))
+      continue;
+
----------------
You might want to call `pushIVUsers(IVOperand, L, Simplified, SimpleIVUsers);` here, to queue the potentially new direct uses of IVOperand (which no longer go through the cast pair and might be simplified now).


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

https://reviews.llvm.org/D129191



More information about the llvm-commits mailing list