diff options
author | Dale Johannesen <dalej@apple.com> | 2009-02-06 23:05:02 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-02-06 23:05:02 +0000 |
commit | e8d7230f480654cdb8ff1c3d0a38e1e9ab0bd55f (patch) | |
tree | 549d56aad780475ce3fa10a4fb13248073d6dac0 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | e72c5964d5263f2489bf2c7e9d32f71271d205fc (diff) |
Remove more non-DebugLoc getNode variants. Use
getCALLSEQ_{END,START} to permit passing no DebugLoc
there. UNDEF doesn't logically have DebugLoc; add
getUNDEF to encapsulate this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 06fbf2ad9c..22c7e5119b 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -780,8 +780,7 @@ bool TargetLowering::SimplifyDemandedBits(SDValue Op, } else if (DemandedMask == 0) { // Not demanding any bits from Op. if (Op.getOpcode() != ISD::UNDEF) - return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::UNDEF, dl, - Op.getValueType())); + return TLO.CombineTo(Op, TLO.DAG.getUNDEF(Op.getValueType())); return false; } else if (Depth == 6) { // Limit search depth. return false; @@ -1704,7 +1703,7 @@ TargetLowering::SimplifySetCC(MVT VT, SDValue N0, SDValue N1, case 1: // Known true. return DAG.getConstant(1, VT); case 2: // Undefined. - return DAG.getNode(ISD::UNDEF, VT); + return DAG.getUNDEF(VT); } } |