Add promoteRes and promoteOp for VP_TRUNCATE.
I couldn't write tests about VP_TRUNCATE when TargetLowering::TypeWidenVector in RISCV, so I reserved a TODO.
Paths
| Differential D125739
[LegalizeTypes][VP] Add integer promotions support for VP_TRUNCATE ClosedPublic Authored by Jimerlife on May 16 2022, 8:05 PM.
Details Summary Add promoteRes and promoteOp for VP_TRUNCATE. I couldn't write tests about VP_TRUNCATE when TargetLowering::TypeWidenVector in RISCV, so I reserved a TODO.
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, • pcwang-thead, jacquesguan, MaskRay. · View Herald TranscriptMay 16 2022, 8:05 PM Jimerlife retitled this revision from [LegalizeTypes][VP] Add promotions for VP_TRUNCATE to [LegalizeTypes][VP] Add integer promotions support for VP_TRUNCATE.May 16 2022, 8:22 PM This revision is now accepted and ready to land.May 17 2022, 10:52 AM This revision was landed with ongoing or failed builds.May 19 2022, 12:38 AM Closed by commit rGbbc6834e2635: [LegalizeTypes][VP] Add integer promotions support for VP_TRUNCATE (authored by Jimerlife). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 430593 llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vector-trunc-vp.ll
llvm/test/CodeGen/RISCV/rvv/vtrunc-vp.ll
|
Shouldn't we have if and else instead of two ifs?