[llvm] AlignmentFromAssumptions should only track pointer operand users (PR #73370)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 12:39:48 PST 2023


================
@@ -226,6 +223,8 @@ bool AlignmentFromAssumptionsPass::processAssumption(CallInst *ACall,
         LI->setAlignment(NewAlignment);
         ++NumLoadAlignChanged;
       }
+      // The user of a Load uses data - not a pointer!
+      AddUsers = false;
----------------
alex-t wrote:

PR is updated to make algorithm to track the pointer operands users only

https://github.com/llvm/llvm-project/pull/73370


More information about the llvm-commits mailing list