mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
Reverse the 'if' condition and reduce the indentation.
llvm-svn: 171172
This commit is contained in:
parent
ab2e6842cc
commit
68441914a5
@ -9549,8 +9549,9 @@ SDValue X86TargetLowering::LowerSIGN_EXTEND(SDValue Op,
|
||||
EVT InVT = In.getValueType();
|
||||
DebugLoc dl = Op->getDebugLoc();
|
||||
|
||||
if ((VT == MVT::v4i64 && InVT == MVT::v4i32) ||
|
||||
(VT == MVT::v8i32 && InVT == MVT::v8i16)) {
|
||||
if ((VT != MVT::v4i64 || InVT != MVT::v4i32) &&
|
||||
(VT != MVT::v8i32 || InVT != MVT::v8i16))
|
||||
return SDValue();
|
||||
|
||||
if (Subtarget->hasInt256())
|
||||
return DAG.getNode(X86ISD::VSEXT_MOVL, dl, VT, In);
|
||||
@ -9587,8 +9588,6 @@ SDValue X86TargetLowering::LowerSIGN_EXTEND(SDValue Op,
|
||||
|
||||
return DAG.getNode(ISD::CONCAT_VECTORS, dl, VT, OpLo, OpHi);
|
||||
}
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
// isAndOrOfSingleUseSetCCs - Return true if node is an ISD::AND or
|
||||
// ISD::OR of two X86ISD::SETCC nodes each of which has no other use apart
|
||||
|
Loading…
Reference in New Issue
Block a user