summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2017-02-04 13:01:53 +0000
committerAmaury Sechet <deadalnix@gmail.com>2017-02-04 13:01:53 +0000
commit6e2d8e49ec73515f549a2940c54141a123a6d38c (patch)
tree4132337fe6c97d71b5c14af0fe13d70dbf9b6a13 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parentc7db0d0e753b4a9da144e0fe4d70b6dda397c5ed (diff)
downloadbcm5719-llvm-6e2d8e49ec73515f549a2940c54141a123a6d38c.tar.gz
bcm5719-llvm-6e2d8e49ec73515f549a2940c54141a123a6d38c.zip
Formatting in DAGCombiner. NFC
llvm-svn: 294091
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 3e753275f1c..b4a04ccbe62 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7778,6 +7778,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
VT.getSizeInBits())))
return DAG.getNode(ISD::TRUNCATE, SDLoc(N), VT, Shorter);
}
+
// fold (truncate (load x)) -> (smaller load x)
// fold (truncate (srl (load x), c)) -> (smaller load (x+c/evtbits))
if (!LegalTypes || TLI.isTypeDesirableForOp(N0.getOpcode(), VT)) {
@@ -7799,6 +7800,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
}
}
}
+
// fold (trunc (concat ... x ...)) -> (concat ..., (trunc x), ...)),
// where ... are all 'undef'.
if (N0.getOpcode() == ISD::CONCAT_VECTORS && !LegalTypes) {
OpenPOWER on IntegriCloud