[llvm] r332431 - Remove unused variable introduced in r332336
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 23:36:12 PDT 2018
Author: uabelho
Date: Tue May 15 23:36:11 2018
New Revision: 332431
URL: http://llvm.org/viewvc/llvm-project?rev=332431&view=rev
Log:
Remove unused variable introduced in r332336
The unused variable caused a compilation warning:
../lib/Target/X86/X86ISelLowering.cpp:34614:17: error: unused variable 'SMax' [-Werror,-Wunused-variable]
if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, C1))
^
1 error generated.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=332431&r1=332430&r2=332431&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue May 15 23:36:11 2018
@@ -34611,7 +34611,7 @@ static SDValue detectUSatPattern(SDValue
return UMin;
if (SDValue SMin = MatchMinMax(In, ISD::SMIN, C2))
- if (SDValue SMax = MatchMinMax(SMin, ISD::SMAX, C1))
+ if (MatchMinMax(SMin, ISD::SMAX, C1))
if (C1.isNonNegative() && C2.isMask(VT.getScalarSizeInBits()))
return SMin;
More information about the llvm-commits
mailing list