[llvm-bugs] [Bug 45229] New: [Backend][LLC][Matrix][Intrinsics] Do not know how to widen this operator's operand

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 17 09:28:00 PDT 2020


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

            Bug ID: 45229
           Summary: [Backend][LLC][Matrix][Intrinsics] Do not know how to
                    widen this operator's operand
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ntv at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 23248
  --> https://bugs.llvm.org/attachment.cgi?id=23248&action=edit
Repro for matrix instrinsics widen bug.

clang --version says

```
clang version google3-trunk (378b1e60809df7cc72436093f160b7ed228dad5a)
Target: x86_64-grtev4-linux-gnu
Thread model: posix
```


clang widen.ll

```
warning: overriding the module target triple with x86_64-grtev4-linux-gnu
[-Woverride-module]
WidenVectorOperand op #1: t11: v4f32 = llvm.matrix.multiply
TargetConstant:i64<171>, t5, t8, TargetConstant:i32<2>, TargetConstant:i32<1>,
TargetConstant:i32<2>, <stdin>:5:10

Do not know how to widen this operator's operand!
UNREACHABLE executed at
third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:4184!
Stack dump:
0.      Program arguments:
/google/obj/workspace/fded954c39a1fa9c6713da39054fe8f8baa93fb7a7f4cad833b21154839c8a20/b62635db-b010-4c48-89b1-e95d0668f57e/blaze-out/k8-dbg/bin/third_party/llvm/llvm-project/clang/clang
-cc1 -triple x86_64-grtev4-linux-gnu -emit-obj -mrelax-all --mrelax-relocations
-disable-free -main-file-name aaa.ll -mrelocation-model static -mthread-model
posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info
-fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir
/google/obj/workspace/fded954c39a1fa9c6713da39054fe8f8baa93fb7a7f4cad833b21154839c8a20/b62635db-b010-4c48-89b1-e95d0668f57e/blaze-out/k8-dbg/bin/third_party/llvm/llvm-project/lib/clang/google3-trunk
-fdebug-compilation-dir /google/src/cloud/ntv/benchmark-llvm-matrix/google3
-ferror-limit 19 -fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -faddrsig -o /tmp/aaa-566003.o -x
ir /tmp/aaa.ll 
1.      Code generation
2.      Running pass 'Function Pass Manager' on module '/tmp/aaa.ll'.
3.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@matrix_intrinsics_corner_case_2'
 #0 0x000055ef209a6841 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:569:11
 #1 0x000055ef209a6cd9 PrintStackTraceSignalHandler(void*)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:625:1
 #2 0x000055ef209a525b llvm::sys::RunSignalHandlers()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Signals.cpp:67:5
 #3 0x000055ef209a734b SignalHandler(int)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/Unix/Signals.inc:406:1
 #4 0x00007fd3252c39a0 __restore_rt (/usr/grte/v4/lib64/libpthread.so.0+0xf9a0)
 #5 0x00007fd325145602 raise (/usr/grte/v4/lib64/libc.so.6+0x4c602)
 #6 0x00007fd325147320 abort (/usr/grte/v4/lib64/libc.so.6+0x4e320)
 #7 0x000055ef209232a4
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/Support/ErrorHandling.cpp:210:3
 #8 0x000055ef1f099398
llvm::DAGTypeLegalizer::WidenVectorOperand(llvm::SDNode*, unsigned int)
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:4186:58
 #9 0x000055ef1f047437 llvm::DAGTypeLegalizer::run()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:336:26
#10 0x000055ef1f04b8eb llvm::SelectionDAG::LegalizeTypes()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:1041:3
#11 0x000055ef1f02ccaf llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/proc/self/cwd/third_party/llvm/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:837:13
...
```

-- 
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/20200317/e3f7afda/attachment.html>


More information about the llvm-bugs mailing list