mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +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.
|
||||
uint64_t NegatedImm = (SplatBits.getZExtValue() ^
|
||||
((1LL << SplatBitSize) - 1));
|
||||
uint64_t NegatedImm = (~SplatBits).getZExtValue();
|
||||
Val = isNEONModifiedImm(NegatedImm,
|
||||
SplatUndef.getZExtValue(), SplatBitSize,
|
||||
DAG, VmovVT, VT.is128BitVector(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user