[PATCH] D84071: More conservatively report status from LoopIdiomRecognize

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 18 09:58:11 PDT 2020


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp:947
     // If we generated new code for the base pointer, clean up.
     RecursivelyDeleteTriviallyDeadInstructions(BasePtr, TLI);
+    return Changed;
----------------
Pre-existing issue, but aren't we missing this for the early returns below? Probably this code should also use ExpandedValuesCleaner.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84071





More information about the llvm-commits mailing list