Skip to content

Commit

Permalink
AMDGPU: Always custom lower extract_subvector
Browse files Browse the repository at this point in the history
The patterns were ripped out in
a4a3ac1 so this always needs to be
custom lowered. I absolutely hate how difficult it is to write tests
for these, I have no doubt there are more of these hidden.

Fixes #64142

(cherry picked from commit 95e5a46)
  • Loading branch information
arsenm authored and tru committed Jul 27, 2023
1 parent 313de9d commit 2d69280
Show file tree
Hide file tree
Showing 2 changed files with 574 additions and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
case ISD::UNDEF:
case ISD::EXTRACT_VECTOR_ELT:
case ISD::INSERT_VECTOR_ELT:
case ISD::EXTRACT_SUBVECTOR:
case ISD::SCALAR_TO_VECTOR:
case ISD::IS_FPCLASS:
break;
case ISD::EXTRACT_SUBVECTOR:
case ISD::INSERT_SUBVECTOR:
case ISD::CONCAT_VECTORS:
setOperationAction(Op, VT, Custom);
Expand Down
Loading

0 comments on commit 2d69280

Please sign in to comment.