[PATCH] D153044: [RISCV] Removed the requirement of XLenVT for performSELECTCombine
Mikhail Gudim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 15 09:33:46 PDT 2023
mgudim created this revision.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
mgudim requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
https://reviews.llvm.org/D153044
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Index: llvm/lib/Target/RISCV/RISCVISelLowering.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -11997,10 +11997,6 @@
if (Subtarget.hasShortForwardBranchOpt())
return SDValue();
- // Only support XLenVT.
- if (N->getValueType(0) != Subtarget.getXLenVT())
- return SDValue();
-
SDValue TrueVal = N->getOperand(1);
SDValue FalseVal = N->getOperand(2);
if (SDValue V = tryFoldSelectIntoOp(N, DAG, TrueVal, FalseVal, /*Swapped*/false))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153044.531793.patch
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230615/c289873d/attachment.bin>
More information about the llvm-commits
mailing list