[llvm-bugs] [Bug 38023] New: [debugify] simplifycfg fail (2)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 2 11:56:49 PDT 2018


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

            Bug ID: 38023
           Summary: [debugify] simplifycfg fail (2)
           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 20508
  --> https://bugs.llvm.org/attachment.cgi?id=20508&action=edit
ll reproducer

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

$ cat Simplify_the_CFG.cpp
void foo();
void bar(int aa) {
  for (int bb = 0; bb < 7; bb++)
    if (aa)
      foo();
}

$ clang Simplify_the_CFG.cpp -S -o - -emit-llvm -O0 -Xclang -disable-O0-optnone
-w -march=native | opt -loop-rotate -gvn -loop-unroll -gvn -S -o
Simplify_the_CFG.ll

$ opt Simplify_the_CFG.ll -disable-output -debugify-each -simplifycfg
ERROR: Instruction with empty DebugLoc in function ?bar@@YAXH at Z --  br label
%if.end.1
ERROR: Instruction with empty DebugLoc in function ?bar@@YAXH at Z --  br label
%if.end.3
ERROR: Instruction with empty DebugLoc in function ?bar@@YAXH at Z --  br label
%if.end.5
WARNING: Missing line 5
WARNING: Missing line 6
WARNING: Missing line 10
WARNING: Missing line 12
WARNING: Missing line 19
WARNING: Missing line 21
WARNING: Missing line 27
WARNING: Missing line 29
WARNING: Missing line 37
CheckFunctionDebugify [Simplify the CFG]: FAIL
CheckFunctionDebugify [Module Verifier]: PASS


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=37953
[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/20180702/c6279767/attachment.html>


More information about the llvm-bugs mailing list