[PATCH] D133118: Fix invalid llvm.dbg.declare after instcombine (#56807)
Matthias Gehre via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 23 01:16:41 PST 2022
mgehre-amd added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/dbg-cast-of-allocation.ll:13
+; CHECK-NEXT: %pixels = alloca i16
+; CHECK-NEXT: call void @llvm.dbg.declare(metadata i16* %pixels, metadata ![[MD:[0-9]+]], metadata !DIExpression()), !dbg ![[DBG:[0-9]+]]
+; CHECK-NEXT: call void @foo(i16* nonnull %pixels)
----------------
Before this PR, the first argument used to be "undef"
================
Comment at: llvm/test/Transforms/InstCombine/dbg-simplify-alloca-size.ll:11
+; CHECK-NEXT: %pixels1 = alloca [3 x i8], align 1
+; CHECK-NEXT: call void @llvm.dbg.declare(metadata [3 x i8]* %pixels1, metadata ![[MD:[0-9]+]], metadata !DIExpression()), !dbg ![[DBG:[0-9]+]]
+; CHECK-NEXT: %pixels1.sub = getelementptr inbounds [3 x i8], [3 x i8]* %pixels1, i64 0, i64 0
----------------
Before this PR, the first argument used to be `%pixels1.sub`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133118/new/
https://reviews.llvm.org/D133118
More information about the llvm-commits
mailing list