mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2515,7 +2515,8 @@ void DAGTypeLegalizer::IntegerExpandSetCCOperands(SDValue &NewLHS,
|
||||
|
||||
// NOTE: on targets without efficient SELECT of bools, we can always use
|
||||
// this identity: (B1 ? B2 : B3) --> (B1 & B2)|(!B1&B3)
|
||||
TargetLowering::DAGCombinerInfo DagCombineInfo(DAG, AfterLegalizeTypes, true, NULL);
|
||||
TargetLowering::DAGCombinerInfo DagCombineInfo(DAG, AfterLegalizeTypes, true,
|
||||
nullptr);
|
||||
SDValue Tmp1, Tmp2;
|
||||
if (TLI.isTypeLegal(LHSLo.getValueType()) &&
|
||||
TLI.isTypeLegal(RHSLo.getValueType()))
|
||||
@@ -2568,7 +2569,7 @@ SDValue DAGTypeLegalizer::ExpandIntOp_BR_CC(SDNode *N) {
|
||||
|
||||
// If ExpandSetCCOperands returned a scalar, we need to compare the result
|
||||
// against zero to select between true and false values.
|
||||
if (NewRHS.getNode() == 0) {
|
||||
if (!NewRHS.getNode()) {
|
||||
NewRHS = DAG.getConstant(0, NewLHS.getValueType());
|
||||
CCCode = ISD::SETNE;
|
||||
}
|
||||
@@ -2586,7 +2587,7 @@ SDValue DAGTypeLegalizer::ExpandIntOp_SELECT_CC(SDNode *N) {
|
||||
|
||||
// If ExpandSetCCOperands returned a scalar, we need to compare the result
|
||||
// against zero to select between true and false values.
|
||||
if (NewRHS.getNode() == 0) {
|
||||
if (!NewRHS.getNode()) {
|
||||
NewRHS = DAG.getConstant(0, NewLHS.getValueType());
|
||||
CCCode = ISD::SETNE;
|
||||
}
|
||||
@@ -2603,7 +2604,7 @@ SDValue DAGTypeLegalizer::ExpandIntOp_SETCC(SDNode *N) {
|
||||
IntegerExpandSetCCOperands(NewLHS, NewRHS, CCCode, SDLoc(N));
|
||||
|
||||
// If ExpandSetCCOperands returned a scalar, use it.
|
||||
if (NewRHS.getNode() == 0) {
|
||||
if (!NewRHS.getNode()) {
|
||||
assert(NewLHS.getValueType() == N->getValueType(0) &&
|
||||
"Unexpected setcc expansion!");
|
||||
return NewLHS;
|
||||
|
Reference in New Issue
Block a user