diff options
author | Craig Topper <craig.topper@intel.com> | 2018-11-05 05:53:03 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-11-05 05:53:03 +0000 |
commit | 8d64abddd1cea5385b3db8dedf89d2b3fe5fb99f (patch) | |
tree | d1f6938ffd3f3659955f7143710239d7c18ab4e3 /llvm/lib | |
parent | 4c5a5c8db6a9bcfafbb8798e9129e125d1f98155 (diff) | |
download | bcm5719-llvm-8d64abddd1cea5385b3db8dedf89d2b3fe5fb99f.tar.gz bcm5719-llvm-8d64abddd1cea5385b3db8dedf89d2b3fe5fb99f.zip |
[DAGCombiner] Remove an unused argument from tryFoldToZero. NFC
llvm-svn: 346118
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 1eac79f28f2..395d855a18f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2540,8 +2540,7 @@ SDValue DAGCombiner::visitADDCARRYLike(SDValue N0, SDValue N1, SDValue CarryIn, // Since it may not be valid to emit a fold to zero for vector initializers // check if we can before folding. static SDValue tryFoldToZero(const SDLoc &DL, const TargetLowering &TLI, EVT VT, - SelectionDAG &DAG, bool LegalOperations, - bool LegalTypes) { + SelectionDAG &DAG, bool LegalOperations) { if (!VT.isVector()) return DAG.getConstant(0, DL, VT); if (!LegalOperations || TLI.isOperationLegal(ISD::BUILD_VECTOR, VT)) @@ -2568,7 +2567,7 @@ SDValue DAGCombiner::visitSUB(SDNode *N) { // fold (sub x, x) -> 0 // FIXME: Refactor this and xor and other similar operations together. if (N0 == N1) - return tryFoldToZero(DL, TLI, VT, DAG, LegalOperations, LegalTypes); + return tryFoldToZero(DL, TLI, VT, DAG, LegalOperations); if (DAG.isConstantIntBuildVectorOrConstantInt(N0) && DAG.isConstantIntBuildVectorOrConstantInt(N1)) { // fold (sub c1, c2) -> c1-c2 @@ -6154,7 +6153,7 @@ SDValue DAGCombiner::visitXOR(SDNode *N) { // fold (xor x, x) -> 0 if (N0 == N1) - return tryFoldToZero(SDLoc(N), TLI, VT, DAG, LegalOperations, LegalTypes); + return tryFoldToZero(SDLoc(N), TLI, VT, DAG, LegalOperations); // fold (xor (shl 1, x), -1) -> (rotl ~1, x) // Here is a concrete example of this equivalence: |