[llvm] [InstCombine] Remove redundant alignment assumptions. (PR #123348)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 1 09:39:42 PDT 2025
================
@@ -3245,6 +3246,30 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
MaybeSimplifyHint(OBU.Inputs[0]);
MaybeSimplifyHint(OBU.Inputs[1]);
}
+
+ // Try to fold alignment assumption into a load's !align metadata, if the
+ // assumption is valid in the load's context and remove redundant ones.
----------------
fhahn wrote:
Yeah the comment was left over from a different PR built on top of this one. Removed.
https://github.com/llvm/llvm-project/pull/123348
More information about the llvm-commits
mailing list