[PATCH] D154289: [Reassociate] Keep flags for more unchanged operations
    Nikita Popov via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jul  2 01:21:57 PDT 2023
    
    
  
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Transforms/Scalar/Reassociate.cpp:835
       // expression tree should be the same even after reassociation).
-      replaceDbgUsesWithUndef(ExpressionChanged);
+      replaceDbgUsesWithUndef(ExpressionChangedStart);
 
----------------
As a side note, I don't think we need to do this bit either for unchanged expressions.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154289/new/
https://reviews.llvm.org/D154289
    
    
More information about the llvm-commits
mailing list