[llvm] [InstCombine] Drop alignment assumptions more aggressively (PR #196060)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 14:01:17 PDT 2026
================
@@ -80,6 +81,18 @@ entry:
ret void
}
+define void @redundant_align() {
+; CHECK-LABEL: @redundant_align(
+; CHECK-NEXT: [[PTR:%.*]] = call ptr @get_ptr()
+; CHECK-NEXT: call void @llvm.assume(i1 true) [ "align"(ptr [[PTR]], i64 8) ]
+; CHECK-NEXT: ret void
+;
+ %ptr = call ptr @get_ptr()
----------------
nikic wrote:
Does this need to be the result of a call (as opposed to just a function arg)?
https://github.com/llvm/llvm-project/pull/196060
More information about the llvm-commits
mailing list