Fix -Wunused-but-set-variable warning.
Summary: A follow-up fix on r279958. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23989 llvm-svn: 279964
This commit is contained in:
parent
662f330852
commit
eab33cecf3
|
@ -14617,17 +14617,14 @@ static SDValue LowerFABSorFNEG(SDValue Op, SelectionDAG &DAG) {
|
||||||
|
|
||||||
MVT LogicVT;
|
MVT LogicVT;
|
||||||
MVT EltVT;
|
MVT EltVT;
|
||||||
unsigned NumElts;
|
|
||||||
|
|
||||||
if (VT.isVector()) {
|
if (VT.isVector()) {
|
||||||
LogicVT = VT;
|
LogicVT = VT;
|
||||||
EltVT = VT.getVectorElementType();
|
EltVT = VT.getVectorElementType();
|
||||||
NumElts = VT.getVectorNumElements();
|
|
||||||
} else if (IsF128) {
|
} else if (IsF128) {
|
||||||
// SSE instructions are used for optimized f128 logical operations.
|
// SSE instructions are used for optimized f128 logical operations.
|
||||||
LogicVT = MVT::f128;
|
LogicVT = MVT::f128;
|
||||||
EltVT = VT;
|
EltVT = VT;
|
||||||
NumElts = 1;
|
|
||||||
} else {
|
} else {
|
||||||
// There are no scalar bitwise logical SSE/AVX instructions, so we
|
// There are no scalar bitwise logical SSE/AVX instructions, so we
|
||||||
// generate a 16-byte vector constant and logic op even for the scalar case.
|
// generate a 16-byte vector constant and logic op even for the scalar case.
|
||||||
|
@ -14635,7 +14632,6 @@ static SDValue LowerFABSorFNEG(SDValue Op, SelectionDAG &DAG) {
|
||||||
// the logic op, so it can save (~4 bytes) on code size.
|
// the logic op, so it can save (~4 bytes) on code size.
|
||||||
LogicVT = (VT == MVT::f64) ? MVT::v2f64 : MVT::v4f32;
|
LogicVT = (VT == MVT::f64) ? MVT::v2f64 : MVT::v4f32;
|
||||||
EltVT = VT;
|
EltVT = VT;
|
||||||
NumElts = (VT == MVT::f64) ? 2 : 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned EltBits = EltVT.getSizeInBits();
|
unsigned EltBits = EltVT.getSizeInBits();
|
||||||
|
|
Loading…
Reference in New Issue