mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Simplify and avoid undefined shift. Based on patch by Ahmed Charles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
63b2f8c710
commit
8e4d0429de
@ -3944,8 +3944,7 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Try an immediate VMVN.
|
// Try an immediate VMVN.
|
||||||
uint64_t NegatedImm = (SplatBits.getZExtValue() ^
|
uint64_t NegatedImm = (~SplatBits).getZExtValue();
|
||||||
((1LL << SplatBitSize) - 1));
|
|
||||||
Val = isNEONModifiedImm(NegatedImm,
|
Val = isNEONModifiedImm(NegatedImm,
|
||||||
SplatUndef.getZExtValue(), SplatBitSize,
|
SplatUndef.getZExtValue(), SplatBitSize,
|
||||||
DAG, VmovVT, VT.is128BitVector(),
|
DAG, VmovVT, VT.is128BitVector(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user