mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Fix comment and unnecessary check for FP build_vectors.
This was copy-paste from the integer version, but FP build_vectors don't truncate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc5b232004
commit
1c7650f67c
@ -711,11 +711,7 @@ static ConstantFPSDNode *isConstOrConstSplatFP(SDValue N) {
|
|||||||
BitVector UndefElements;
|
BitVector UndefElements;
|
||||||
ConstantFPSDNode *CN = BV->getConstantFPSplatNode(&UndefElements);
|
ConstantFPSDNode *CN = BV->getConstantFPSplatNode(&UndefElements);
|
||||||
|
|
||||||
// BuildVectors can truncate their operands. Ignore that case here.
|
if (CN && UndefElements.none())
|
||||||
// FIXME: We blindly ignore splats which include undef which is overly
|
|
||||||
// pessimistic.
|
|
||||||
if (CN && UndefElements.none() &&
|
|
||||||
CN->getValueType(0) == N.getValueType().getScalarType())
|
|
||||||
return CN;
|
return CN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user