Skip to content

Commit

Permalink
[DAG] Restore dropped condition
Browse files Browse the repository at this point in the history
This was dropped in fcee33b,
presumably accidentally.
  • Loading branch information
nikic committed Nov 26, 2021
1 parent bee8dcd commit bfa91f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Expand Up @@ -2823,7 +2823,8 @@ bool TargetLowering::SimplifyDemandedVectorElts(
KnownUndef = SrcUndef.zextOrTrunc(NumElts);

if (IsLE && Op.getOpcode() == ISD::ANY_EXTEND_VECTOR_INREG &&
Op.getValueSizeInBits() == Src.getValueSizeInBits()) {
Op.getValueSizeInBits() == Src.getValueSizeInBits() &&
DemandedSrcElts == 1) {
// aext - if we just need the bottom element then we can bitcast.
return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, Src));
}
Expand Down

0 comments on commit bfa91f3

Please sign in to comment.