[llvm-bugs] [Bug 38083] New: [debugify] instcombine fail (2) (Instruction with empty DebugLoc in function)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 6 10:10:33 PDT 2018


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

            Bug ID: 38083
           Summary: [debugify] instcombine fail (2) (Instruction with
                    empty DebugLoc in function)
           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: anastasis.gramm2 at gmail.com, davide at freebsd.org,
                    llvm-bugs at lists.llvm.org, vsk at apple.com
            Blocks: 37953

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

$ clang -v
clang version 7.0.0 (trunk 336429) (llvm/trunk 336428)
Target: x86_64-scei-ps4
Thread model: posix
InstalledDir: e:\work\upstream-llvm\build-vs2015-ps4-ninja\bin

$ cat 1.Combine_redundant_instructions.FAIL_with_warnings.cpp
void foo();
void bar() {
  for (int baz = 0; baz < 10; baz++)
    foo();
}

$ clang --target=x86_64-unkown-unknown -O0 -Xclang -disable-O0-optnone
1.Combine_redundant_instructions.FAIL_with_warnings.cpp -S -emit-llvm -o
instcombine-input.ll

$ opt -debugify-each -disable-output -instcombine instcombine-input.ll
ERROR: Instruction with empty DebugLoc in function _Z3barv --  %storemerge =
phi i32 [ 0, %entry ], [ %inc, %for.inc ]
WARNING: Missing line 2
WARNING: Missing line 4
WARNING: Missing line 11
CheckFunctionDebugify [Combine redundant instructions]: 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/20180706/b1be9f32/attachment.html>


More information about the llvm-bugs mailing list