[llvm] [X86] combineConcatVectorOps - add concatenation handling for BITCAST + AssertSext/AssertZext nodes (PR #133913)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 10 06:59:18 PDT 2025
================
@@ -58134,6 +58135,40 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
unsigned Opcode = Op0.getOpcode();
switch (Opcode) {
+ case ISD::AssertSext:
+ case ISD::AssertZext: {
+ if (!IsSplat && llvm::all_of(Ops, [Op0](SDValue Op) {
+ return Op0.getOperand(1) == Op.getOperand(1);
+ }))
+ if (SDValue ConcatSrc =
+ combineConcatVectorOps(DL, VT, Ops, DAG, Subtarget, Depth + 1))
----------------
RKSimon wrote:
Looks like this was dead code - I'm going to remove it.
https://github.com/llvm/llvm-project/pull/133913
More information about the llvm-commits
mailing list