[llvm] [InstCombine] Remove redundant alignment assumptions. (PR #123348)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 07:28:42 PST 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.
----------------
nikic wrote:
I'm a bit confused -- the code doesn't seem to do anything with load metadata?
https://github.com/llvm/llvm-project/pull/123348
More information about the llvm-commits
mailing list