[llvm] AlignmentFromAssumptions should only track pointer operand users (PR #73370)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 01:49:38 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:
getPointerBase() also looks through AddRecs, which are phi nodes. But yeah, select is probably not relevant here.
https://github.com/llvm/llvm-project/pull/73370
More information about the llvm-commits
mailing list