[llvm] AlignmentFromAssumptions should not track the load result users (PR #73370)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 13:32:32 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;
----------------
nikic wrote:
I'm not sure I follow. We're working on pointers here, so I would expect that the only type of arithmetic that is relevant here is getelementptr.
https://github.com/llvm/llvm-project/pull/73370
More information about the llvm-commits
mailing list