[llvm-bugs] [Bug 37954] New: [debugify] mem2reg fail (ERROR: Instruction with empty DebugLoc)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 27 06:25:06 PDT 2018


            Bug ID: 37954
           Summary: [debugify] mem2reg fail (ERROR: Instruction with empty
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: greg.bedwell at sony.com
                CC: llvm-bugs at lists.llvm.org
            Blocks: 37953

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

Testcase from Stephen Wilks's work on auto test-case generation/reduction.  The
test-case originally failed in the loop vectorizer at -O3, but I spotted the
mem2reg failure while trying to get the minimal set of passes to reproduce.

$ clang --version
clang version 7.0.0 (trunk 335708) (llvm/trunk 335721)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: e:\work\upstream-llvm\build-vs2015-native-ninja\bin

$ clang loop_vectorization.cpp -S -emit-llvm -O0 -Xclang -disable-O0-optnone -o

$ opt xx.ll -disable-output -debugify-each -mem2reg
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH at Z -- 
%bar.addr.0 = phi i32 [ %bar, %entry ], [ %dec, %while.body ], !dbg !28
WARNING: Missing line 1
WARNING: Missing line 2
WARNING: Missing line 3
WARNING: Missing line 4
WARNING: Missing line 6
WARNING: Missing line 8
WARNING: Missing line 11
WARNING: Missing line 12
WARNING: Missing line 13
CheckFunctionDebugify [Promote Memory to Register]: FAIL
CheckFunctionDebugify [Module Verifier]: PASS

Referenced Bugs:

[Bug 37953] [meta] [debugify] fix -check-debugify failures
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/20180627/ffa01492/attachment.html>

More information about the llvm-bugs mailing list