[PATCH] D133310: [Assignment Tracking][15/*] Account for assignment tracking in simplifycfg

Chris Jackson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 07:04:32 PDT 2022


chrisjackson added a comment.

In D133310#3792255 <https://reviews.llvm.org/D133310#3792255>, @Orlando wrote:

> Thanks for taking a look

My pleasure.



================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1899
+    // In most (all?) cases this just introduces a use-before-def.
+    assert(I->user_empty() && "I unexpectedly still has non-dbg users");
+    I->replaceAllUsesWith(I0);
----------------
Orlando wrote:
> chrisjackson wrote:
> > 
> I was referring to the variable `I` there, but `Instruction` makes more sense and is not ambiguous. I'll update when I come to land this (or if major updates are required) if that's ok?
Yep!


================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2576
   // be misleading while debugging.
   // Similarly strip attributes that maybe dependent on condition we are
   // hoisting above.
----------------
Orlando wrote:
> chrisjackson wrote:
> > 
> I didn't add the comment above, but happy to fold in the update if you want.
I see. I think it should be corrected but if you'd rather leave it alone, no worries.


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

https://reviews.llvm.org/D133310



More information about the llvm-commits mailing list