[llvm-bugs] [Bug 38163] New: [debugify] reassociate fail

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 13 12:58:16 PDT 2018


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

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

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

$ cat Debugifind.1.FAIL.Reassociate_expressions.cpp
void foo(int& bar, int baz) {
    bar += baz - baz;
}

$ clang.exe Debugifind.1.FAIL.Reassociate_expressions.cpp -S -o - -emit-llvm
-O0 -Xclang -disable-O0-optnone -o Debugifind.1.FAIL.Reassociate_expressions.ll

$ opt.exe -disable-output -debugify-each -reassociate
Debugifind.1.FAIL.Reassociate_expressions.ll
ERROR: Instruction with empty DebugLoc in function _Z3fooRii --  %.neg = sub
i32 0, %1
CheckFunctionDebugify [Reassociate expressions]: 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/20180713/3093e216/attachment.html>


More information about the llvm-bugs mailing list