[PATCH] D98218: [LSR] fix a issue that LoopStrengthReduction drop debug location unnecessarily
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 19:27:31 PDT 2021
dblaikie added inline comments.
================
Comment at: llvm/test/Transforms/LoopStrengthReduce/optimizemax_debugloc.ll:10-27
+ bb.nph:
+ %cond = icmp eq i32 %n, 0, !dbg !16
+ call void @llvm.dbg.value(metadata i1 %cond, metadata !9, metadata !DIExpression()), !dbg !16
+ %umax = select i1 %cond, i32 1, i32 %n, !dbg !17
+ call void @llvm.dbg.value(metadata i32 %umax, metadata !11, metadata !DIExpression()), !dbg !17
+ br label %bb, !dbg !18
+
----------------
Could use some reformatting (if you pasted this into vim, for instance, you can "set paste" so when you paste the code it doesn't try to indent)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98218/new/
https://reviews.llvm.org/D98218
More information about the llvm-commits
mailing list