[llvm-bugs] [Bug 37959] New: [debugify] globalopt fail

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 27 07:16:46 PDT 2018


            Bug ID: 37959
           Summary: [debugify] globalopt fail
           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 20477
  --> https://bugs.llvm.org/attachment.cgi?id=20477&action=edit
ll reproducer

$ clang -v
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

$ cat global_variable_optimizer.cpp
static int foo;
int bar() {
  foo = 5;
  return foo;

$ clang global_variable_optimizer.cpp -O0 -Xclang -disable-O0-optnone -S
-emit-llvm -o globalopt-input.ll

$ opt globalopt-input.ll -disable-output -debugify-each -globalopt
ERROR: Instruction with empty DebugLoc in function ?bar@@YAHXZ --  store i1
true, i1* @foo
ERROR: Instruction with empty DebugLoc in function ?bar@@YAHXZ --  %.b = load
i1, i1* @foo
ERROR: Instruction with empty DebugLoc in function ?bar@@YAHXZ --  %0 = select
i1 %.b, i32 5, i32 0
WARNING: Missing line 1
WARNING: Missing line 2
CheckModuleDebugify [Global Variable Optimizer]: 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/db2b1552/attachment.html>

More information about the llvm-bugs mailing list