[llvm-bugs] [Bug 37714] New: InstCombine: test/Transforms/InstCombine/call-guard.ll looks different with debug info present
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 6 12:12:23 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37714
Bug ID: 37714
Summary: InstCombine: test/Transforms/InstCombine/call-guard.ll
looks different with debug info present
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: vsk at apple.com
CC: llvm-bugs at lists.llvm.org
Running `opt -O1` on call-guard.ll produces different output with/without debug
info present. To reproduce the issue, do:
# Baseline
$ $OPT -O1 test/Transforms/InstCombine/call-guard.ll -S -o -
# With debug info
$ $OPT -O1 test/Transforms/InstCombine/call-guard.ll -o - -debugify-each
-debugify-quiet | $OPT -strip -S
Comparing: -O1 test/Transforms/InstCombine/call-guard.ll
Baseline: /var/folders/j8/t4w0bp8j6x1g6fpghkcb4sjm0000gp/T/tmp.RGoONn6d
With DI : /var/folders/j8/t4w0bp8j6x1g6fpghkcb4sjm0000gp/T/tmp.9KJlc8DB
20a21
> call void (i1, ...) @llvm.experimental.guard(i1 %4, i32 123) [ "deopt"() ]
23,24c24
< %7 = and i1 %6, %4
< call void (i1, ...) @llvm.experimental.guard(i1 %7, i32 123) [ "deopt"() ]
---
> call void (i1, ...) @llvm.experimental.guard(i1 %6, i32 789) [ "deopt"() ]
38,39c38,40
< %3 = load i32, i32* %1, align 4
< %4 = and i32 %3, %0
---
> %3 = icmp slt i32 %0, 0
> call void (i1, ...) @llvm.experimental.guard(i1 %3, i32 123) [ "deopt"() ]
> %4 = load i32, i32* %1, align 4
41c42
< call void (i1, ...) @llvm.experimental.guard(i1 %5, i32 123) [ "deopt"() ]
---
> call void (i1, ...) @llvm.experimental.guard(i1 %5, i32 456) [ "deopt"() ]
:: Found a test case ^
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180606/0459bf09/attachment.html>
More information about the llvm-bugs
mailing list