[llvm-bugs] [Bug 37713] New: InstCombine: stacksaverestore.ll looks different with debug info present

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 6 12:05:48 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37713

            Bug ID: 37713
           Summary: InstCombine: stacksaverestore.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 stacksaverestore.ll produces different output with/without
debug info present. To reproduce the issue, do:

# Baseline
$ $OPT -O1 test/Transforms/InstCombine/stacksaverestore.ll -S -o -

# With debug info
$ $OPT -O1 test/Transforms/InstCombine/stacksaverestore.ll -o - -debugify-each
-debugify-quiet | $OPT -strip -S

Comparing: -O1 test/Transforms/InstCombine/stacksaverestore.ll
  Baseline: /var/folders/j8/t4w0bp8j6x1g6fpghkcb4sjm0000gp/T/tmp.P2vczKKB
  With DI : /var/folders/j8/t4w0bp8j6x1g6fpghkcb4sjm0000gp/T/tmp.pcByPNQ1
12,16c12,18
< ; Function Attrs: norecurse nounwind readnone
< define noalias nonnull i32* @test1(i32) local_unnamed_addr #1 {
<   %2 = zext i32 %0 to i64
<   %3 = alloca i32, i64 %2, align 4
<   ret i32* %3
---
> ; Function Attrs: nounwind
> define noalias nonnull i32* @test1(i32) local_unnamed_addr #0 {
>   %2 = tail call i8* @llvm.stacksave()
>   tail call void @llvm.stackrestore(i8* %2)
>   %3 = zext i32 %0 to i64
>   %4 = alloca i32, i64 %3, align 4
>   ret i32* %4
:: 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/b2b192fb/attachment.html>


More information about the llvm-bugs mailing list