[PATCH] D87494: [WIP] Improve LSR debug-info

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 08:26:51 PDT 2020


aprantl added a comment.

Could you add test that showcases the effect?



================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:5817
+  for (auto UseOfI_ : I->users()) {
+    auto UseOfI = dyn_cast<Instruction>(UseOfI_);
+    if (MaybeDead.count(UseOfI))
----------------
either we check the result or this should be 
`auto *UseOfI = cast<Instruction>()`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87494



More information about the llvm-commits mailing list