mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
Don't use a random type for the select condition,
use an MVT::i1 and simplify the code while there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c8b2a89f9
commit
f6e29499ac
@ -272,8 +272,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT(SDNode *N) {
|
||||
if (TLI.isBigEndian())
|
||||
std::swap(Lo, Hi);
|
||||
|
||||
SDValue Odd = DAG.getNode(ISD::AND, OldIdx.getValueType(), OldIdx,
|
||||
DAG.getConstant(1, TLI.getShiftAmountTy()));
|
||||
SDValue Odd = DAG.getNode(ISD::TRUNCATE, MVT::i1, OldIdx);
|
||||
return DAG.getNode(ISD::SELECT, NewVT, Odd, Hi, Lo);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user