[llvm] [SelectionDAG] Remove arbitrary patch size check (PR #85590)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 17:25:07 PDT 2024
https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/85590
None
>From e7165f5d2cbd17f92ff2392e62d211ac105598a1 Mon Sep 17 00:00:00 2001
From: Rose <gfunni234 at gmail.com>
Date: Sun, 17 Mar 2024 20:24:41 -0400
Subject: [PATCH] [SelectionDAG] Remove arbitrary patch size check
---
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 2670f48aebcff5..e87a20b7ffe77e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -4086,11 +4086,6 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
case ISD::INTRINSIC_WO_CHAIN:
case ISD::INTRINSIC_W_CHAIN:
case ISD::INTRINSIC_VOID:
- // TODO: Probably okay to remove after audit; here to reduce change size
- // in initial enablement patch for scalable vectors
- if (Op.getValueType().isScalableVector())
- break;
-
// Allow the target to implement this method for its nodes.
TLI->computeKnownBitsForTargetNode(Op, Known, DemandedElts, *this, Depth);
break;
@@ -4933,14 +4928,10 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
Opcode == ISD::INTRINSIC_WO_CHAIN ||
Opcode == ISD::INTRINSIC_W_CHAIN ||
Opcode == ISD::INTRINSIC_VOID) {
- // TODO: This can probably be removed once target code is audited. This
- // is here purely to reduce patch size and review complexity.
- if (!VT.isScalableVector()) {
unsigned NumBits =
TLI->ComputeNumSignBitsForTargetNode(Op, DemandedElts, *this, Depth);
if (NumBits > 1)
FirstAnswer = std::max(FirstAnswer, NumBits);
- }
}
// Finally, if we can prove that the top bits of the result are 0's or 1's,
More information about the llvm-commits
mailing list