[llvm] r294091 - Formatting in DAGCombiner. NFC
Amaury Sechet via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 05:01:55 PST 2017
Author: deadalnix
Date: Sat Feb 4 07:01:53 2017
New Revision: 294091
URL: http://llvm.org/viewvc/llvm-project?rev=294091&view=rev
Log:
Formatting in DAGCombiner. NFC
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=294091&r1=294090&r2=294091&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sat Feb 4 07:01:53 2017
@@ -7778,6 +7778,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNod
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(SDNod
}
}
}
+
// fold (trunc (concat ... x ...)) -> (concat ..., (trunc x), ...)),
// where ... are all 'undef'.
if (N0.getOpcode() == ISD::CONCAT_VECTORS && !LegalTypes) {
More information about the llvm-commits
mailing list