mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02: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. llvm-svn: 216928
This commit is contained in:
parent
c90d424c3a
commit
2e1586e561
@ -711,11 +711,7 @@ static ConstantFPSDNode *isConstOrConstSplatFP(SDValue N) {
|
||||
BitVector UndefElements;
|
||||
ConstantFPSDNode *CN = BV->getConstantFPSplatNode(&UndefElements);
|
||||
|
||||
// BuildVectors can truncate their operands. Ignore that case here.
|
||||
// FIXME: We blindly ignore splats which include undef which is overly
|
||||
// pessimistic.
|
||||
if (CN && UndefElements.none() &&
|
||||
CN->getValueType(0) == N.getValueType().getScalarType())
|
||||
if (CN && UndefElements.none())
|
||||
return CN;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user