[PATCH] D87685: [Scalarizer] Avoid changing name of non-instructions

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 04:56:47 PDT 2020


lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.

SGTM, sorry about that.



================
Comment at: llvm/lib/Transforms/Scalar/Scalarizer.cpp:401
       Instruction *Old = cast<Instruction>(V);
-      CV[I]->takeName(Old);
+      if (isa<Instruction>(CV[I]))
+        CV[I]->takeName(Old);
----------------
This could use a comment.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87685



More information about the llvm-commits mailing list