Skip to content

Commit

Permalink
[DAG] Fix typo in VSELECT SimplifyDemandedVectorElts handling. NFC.
Browse files Browse the repository at this point in the history
Rename UndefZero -> UndefSel (undefined elements from Sel operand).
  • Loading branch information
RKSimon committed Jan 4, 2024
1 parent ff0c1f2 commit 72db578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 72db578

Please sign in to comment.