diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2019-09-30 21:41:52 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2019-09-30 21:41:52 +0000 |
commit | e6f98c0073a78c89cfcba4eaacbc3eec83923719 (patch) | |
tree | 4018f8e2d21ad632aac7a47d4dd21550f228cb30 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 98f089994210e4c5f6c4f573def08c48d598465d (diff) | |
download | bcm5719-llvm-e6f98c0073a78c89cfcba4eaacbc3eec83923719.tar.gz bcm5719-llvm-e6f98c0073a78c89cfcba4eaacbc3eec83923719.zip |
[DAGCombiner] Clang format MatchRotate. NFC
llvm-svn: 373269
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index e94e16900a9..4c012518a41 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -6375,12 +6375,14 @@ SDValue DAGCombiner::MatchRotatePosNeg(SDValue Shifted, SDValue Pos, SDValue DAGCombiner::MatchRotate(SDValue LHS, SDValue RHS, const SDLoc &DL) { // Must be a legal type. Expanded 'n promoted things won't work with rotates. EVT VT = LHS.getValueType(); - if (!TLI.isTypeLegal(VT)) return SDValue(); + if (!TLI.isTypeLegal(VT)) + return SDValue(); // The target must have at least one rotate flavor. bool HasROTL = hasOperation(ISD::ROTL, VT); bool HasROTR = hasOperation(ISD::ROTR, VT); - if (!HasROTL && !HasROTR) return SDValue(); + if (!HasROTL && !HasROTR) + return SDValue(); // Check for truncated rotate. if (LHS.getOpcode() == ISD::TRUNCATE && RHS.getOpcode() == ISD::TRUNCATE && @@ -6430,10 +6432,10 @@ SDValue DAGCombiner::MatchRotate(SDValue LHS, SDValue RHS, const SDLoc &DL) { // At this point we've matched or extracted a shift op on each side. if (LHSShift.getOperand(0) != RHSShift.getOperand(0)) - return SDValue(); // Not shifting the same value. + return SDValue(); // Not shifting the same value. if (LHSShift.getOpcode() == RHSShift.getOpcode()) - return SDValue(); // Shifts must disagree. + return SDValue(); // Shifts must disagree. // Canonicalize shl to left side in a shl/srl pair. if (RHSShift.getOpcode() == ISD::SHL) { |