[PATCH] D41496: [EarlyCSE] Salvage debug info during DCE

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 07:48:23 PST 2018


djtodoro added a comment.

@vsk I have updated it. 'ctpop' is not necessary, there can be other intrinsic (e.g. 'bswap'). Thanks for the comment!
@aprantl Thanks!



================
Comment at: test/Transforms/EarlyCSE/debuginfo-dce.ll:1-7
+; RUN: opt -early-cse -S %s -o - | FileCheck %s
+; ModuleID = '<stdin>'
+source_filename = "test.c"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
+; Function Attrs: nounwind uwtable
+define i32 @foo() !dbg !6 {
----------------
davide wrote:
> I'm under the impression this test case can be simplified. Can you give it a try?
Yes, I have updated it. Thank you for the comment!


https://reviews.llvm.org/D41496





More information about the llvm-commits mailing list