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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            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@Z --  br label
%if.end.1
ERROR: Instruction with empty DebugLoc in function ?bar@@YAXH@Z --  br label
%if.end.3
ERROR: Instruction with empty DebugLoc in function ?bar@@YAXH@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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to