[llvm] AlignmentFromAssumptions should not track the load result users (PR #73370)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 05:51: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;
----------------
alex-t wrote:

Oops. Yes, it is a high level IR and GEPs do all with the pointer arithmetic. 

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


More information about the llvm-commits mailing list