As reported in https://bugs.llvm.org/show_bug.cgi?id=45709 we can hit an infinite loop in legalization since we set the legalization action for ISD::SELECT_CC for all fixed length vector types to Promote. Without some different legalization action for the type being promoted to, the legalizer simply loops. Since we don't have patterns to match the node, the right legalization action should be Expand.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60 ms | LLVM.DebugInfo/X86::Unknown Unit Message ("") |
Event Timeline
llvm/test/CodeGen/PowerPC/pr45709.ll | ||
---|---|---|
5 | This is kind of minor, but it may be good to document about the fix in the test case or give the function a more descriptive name. |
Comment Actions
The name of the test is pr45709 which refers to the bug number so I guess anyone interested should look there for the details.
However, I still agree with Amy that adding a description inside the test would be useful since the code in the test is not self explanatory.
Otherwise, LGTM.
llvm/test/CodeGen/PowerPC/pr45709.ll | ||
---|---|---|
51 | nit: |
This is kind of minor, but it may be good to document about the fix in the test case or give the function a more descriptive name.