summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-09-02 18:33:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-09-02 18:33:51 +0000
commit965de3050f4b82a190f8ee0f11d1478d6cfce4d8 (patch)
treeed46938793d87c303655a3f4272e794f72c800a9 /llvm/lib
parent78fdec589899ef9033ed281bbfde0cc50afd4096 (diff)
downloadbcm5719-llvm-965de3050f4b82a190f8ee0f11d1478d6cfce4d8.tar.gz
bcm5719-llvm-965de3050f4b82a190f8ee0f11d1478d6cfce4d8.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 1186683aeba..e556e74980c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -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;
}
OpenPOWER on IntegriCloud