summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-04-26 13:27:57 +0000
committerSanjay Patel <spatel@rotateright.com>2017-04-26 13:27:57 +0000
commita4b4e9388cedc7da13c37e8939609786486731ce (patch)
tree382c38cf3e828df123e43a3b6f3d961bc497bff0 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent00353a0bf9d23fdd05a0bb3f2639366c971d7f6d (diff)
downloadbcm5719-llvm-a4b4e9388cedc7da13c37e8939609786486731ce.tar.gz
bcm5719-llvm-a4b4e9388cedc7da13c37e8939609786486731ce.zip
[DAG] add FIXME comments for splat detection; NFC
llvm-svn: 301403
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index afcdb6ce015..18b238d4e35 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1364,6 +1364,9 @@ unsigned TargetLowering::ComputeNumSignBitsForTargetNode(SDValue Op,
return 1;
}
+// FIXME: Ideally, this would use ISD::isConstantSplatVector(), but that must
+// work with truncating build vectors and vectors with elements of less than
+// 8 bits.
bool TargetLowering::isConstTrueVal(const SDNode *N) const {
if (!N)
return false;
OpenPOWER on IntegriCloud