The lowering for EXTRACT_SUBVECTOR should not be called during type
legalization, only as part of lowering, hence return SDValue() when
called on illegal types.
This also adds missing tests for extracting fixed types from illegal
scalable types.
Paths
| Differential D111412
[AArch64][SVE] Ensure LowerEXTRACT_SUBVECTOR is not called for illegal types ClosedPublic Authored by bsmith on Oct 8 2021, 8:03 AM.
Details Summary The lowering for EXTRACT_SUBVECTOR should not be called during type This also adds missing tests for extracting fixed types from illegal
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 8 2021, 8:16 AM Closed by commit rG03065ecd8536: [AArch64][SVE] Ensure LowerEXTRACT_SUBVECTOR is not called for illegal types (authored by bsmith). · Explain WhyOct 11 2021, 4:21 AM This revision was automatically updated to reflect the committed changes. craig.topper added inline comments.
Revision Contents
Diff 378217 llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-extract-fixed-vector.ll
|
You don’t need DAG.getTargetLowering() here. You’re in a method on a subclass of TargetLowering.