[clang] [llvm] [InstCombine] remove dead loads, such as memcpy from undef (PR #143958)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 13:24:55 PDT 2025


================
@@ -364,20 +364,8 @@ define <2 x i1> @and_ne_with_diff_one_splatvec(<2 x i32> %x) {
 
 define void @simplify_before_foldAndOfICmps(ptr %p) {
 ; CHECK-LABEL: @simplify_before_foldAndOfICmps(
-; CHECK-NEXT:    [[A8:%.*]] = alloca i16, align 2
-; CHECK-NEXT:    [[L7:%.*]] = load i16, ptr [[A8]], align 2
----------------
nikic wrote:

Should probably replace this load with an argument to retain test behavior?

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


More information about the llvm-commits mailing list