[llvm-bugs] [Bug 40573] New: [Debuginfo] @llvm.dbg.value changes behaviour of "Speculatively execute instructions"

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 2 09:29:42 PST 2019


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

            Bug ID: 40573
           Summary: [Debuginfo] @llvm.dbg.value changes behaviour of
                    "Speculatively execute instructions"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 21421
  --> https://bugs.llvm.org/attachment.cgi?id=21421&action=edit
reduced testcase

Without the @llvm.dbg instruction in the test case, the fdiv instruction is
moved up in the CFG by 

bin/opt -mtriple=systemz-unknown -mcpu=z13 -S tc_speculexe.ll
-speculative-execution

I suspect that this is also (as in bug 40564) related to counting instructions
in the block on the line

     if (NotHoisted.size() > SpecExecMaxNotHoisted)

in SpeculativeExecution.cpp

-- 
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/20190202/990a527c/attachment.html>


More information about the llvm-bugs mailing list