diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-01-30 02:23:43 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-01-30 02:23:43 +0000 |
| commit | d69c3141ed6d237ad19fdfbfcef8901491b24c2e (patch) | |
| tree | f9b1e75145c3b07604cd449ffd3ad24e9d7f657a /include/llvm/CodeGen | |
| parent | 7ba605285216baf15b639cf5df395a8071a696d6 (diff) | |
- Propagate debug loc info in combineSelectAndUse().
- Modify ReassociateOps so that the resulting SDValue is what the comment claims
it is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 6b09a745c3..895285c748 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -487,7 +487,12 @@ public: /// SDValue getSetCC(MVT VT, SDValue LHS, SDValue RHS, ISD::CondCode Cond) { - return getNode(ISD::SETCC, VT, LHS, RHS, getCondCode(Cond)); + return getNode(ISD::SETCC, DebugLoc::getUnknownLoc(), VT, + LHS, RHS, getCondCode(Cond)); + } + SDValue getSetCC(DebugLoc DL, MVT VT, SDValue LHS, SDValue RHS, + ISD::CondCode Cond) { + return getNode(ISD::SETCC, DL, VT, LHS, RHS, getCondCode(Cond)); } /// getVSetCC - Helper function to make it easier to build VSetCC's nodes @@ -495,7 +500,12 @@ public: /// SDValue getVSetCC(MVT VT, SDValue LHS, SDValue RHS, ISD::CondCode Cond) { - return getNode(ISD::VSETCC, VT, LHS, RHS, getCondCode(Cond)); + return getNode(ISD::VSETCC, DebugLoc::getUnknownLoc(), VT, + LHS, RHS, getCondCode(Cond)); + } + SDValue getVSetCC(DebugLoc DL, MVT VT, SDValue LHS, SDValue RHS, + ISD::CondCode Cond) { + return getNode(ISD::VSETCC, DL, VT, LHS, RHS, getCondCode(Cond)); } /// getSelectCC - Helper function to make it easier to build SelectCC's if you @@ -503,8 +513,13 @@ public: /// SDValue getSelectCC(SDValue LHS, SDValue RHS, SDValue True, SDValue False, ISD::CondCode Cond) { - return getNode(ISD::SELECT_CC, True.getValueType(), LHS, RHS, True, False, - getCondCode(Cond)); + return getNode(ISD::SELECT_CC, DebugLoc::getUnknownLoc(), True.getValueType(), + LHS, RHS, True, False, getCondCode(Cond)); + } + SDValue getSelectCC(DebugLoc DL, SDValue LHS, SDValue RHS, + SDValue True, SDValue False, ISD::CondCode Cond) { + return getNode(ISD::SELECT_CC, DL, True.getValueType(), + LHS, RHS, True, False, getCondCode(Cond)); } /// getVAArg - VAArg produces a result and token chain, and takes a pointer |
