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

            Bug ID: 38082
           Summary: [debugify] instcombine fail
           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], [email protected],
                    [email protected], [email protected]
            Blocks: 37953

Created attachment 20532
  --> https://bugs.llvm.org/attachment.cgi?id=20532&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 Combine_redundant_instructions.FAIL_with_warnings.cpp
void foo(int);
void bar(int baz) { foo(baz & 1LL); }

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

$ opt -debugify-each -disable-output -instcombine instcombine-input.ll
ERROR: dbg.value operand has size 32, but its variable has size 64:   call void
@llvm.dbg.value(metadata i32 %0, metadata !16, metadata !DIExpression()), !dbg
!19
WARNING: Missing line 1
WARNING: Missing line 2
WARNING: Missing line 3
WARNING: Missing line 4
WARNING: Missing line 6
WARNING: Missing variable 1
WARNING: Missing variable 3
WARNING: Missing variable 4
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to