[llvm] 72db578 - [DAG] Fix typo in VSELECT SimplifyDemandedVectorElts handling. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 02:51:21 PST 2024
Author: Simon Pilgrim
Date: 2024-01-04T10:50:42Z
New Revision: 72db578d7149bc9941d45a800fb8be4f79ba24e2
URL: https://github.com/llvm/llvm-project/commit/72db578d7149bc9941d45a800fb8be4f79ba24e2
DIFF: https://github.com/llvm/llvm-project/commit/72db578d7149bc9941d45a800fb8be4f79ba24e2.diff
LOG: [DAG] Fix typo in VSELECT SimplifyDemandedVectorElts handling. NFC.
Rename UndefZero -> UndefSel (undefined elements from Sel operand).
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 66cdd752590875..c28e8acd57a14a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -3353,8 +3353,8 @@ bool TargetLowering::SimplifyDemandedVectorElts(
// Try to transform the select condition based on the current demanded
// elements.
- APInt UndefSel, UndefZero;
- if (SimplifyDemandedVectorElts(Sel, DemandedElts, UndefSel, UndefZero, TLO,
+ APInt UndefSel, ZeroSel;
+ if (SimplifyDemandedVectorElts(Sel, DemandedElts, UndefSel, ZeroSel, TLO,
Depth + 1))
return true;
@@ -3377,7 +3377,7 @@ bool TargetLowering::SimplifyDemandedVectorElts(
// select value element.
APInt DemandedSel = DemandedElts & ~KnownZero;
if (DemandedSel != DemandedElts)
- if (SimplifyDemandedVectorElts(Sel, DemandedSel, UndefSel, UndefZero, TLO,
+ if (SimplifyDemandedVectorElts(Sel, DemandedSel, UndefSel, ZeroSel, TLO,
Depth + 1))
return true;
More information about the llvm-commits
mailing list