diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-05-28 06:59:57 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-05-28 06:59:57 +0000 |
commit | bf071cfc4f72565e03d6269e35de093711fd60e5 (patch) | |
tree | 6713cbde53c11dabade554015ce5eafb53ecd3d2 /lib/Target/PIC16 | |
parent | e272d6e2e674b11a0d98dc23b905355943f7a216 (diff) | |
download | external_llvm-bf071cfc4f72565e03d6269e35de093711fd60e5.zip external_llvm-bf071cfc4f72565e03d6269e35de093711fd60e5.tar.gz external_llvm-bf071cfc4f72565e03d6269e35de093711fd60e5.tar.bz2 |
Fixing problems that got exposed after the refactoring of LegalizeDAG done in 72447.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r-- | lib/Target/PIC16/PIC16ISelLowering.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/PIC16/PIC16ISelLowering.cpp b/lib/Target/PIC16/PIC16ISelLowering.cpp index bde00c3..f061507 100644 --- a/lib/Target/PIC16/PIC16ISelLowering.cpp +++ b/lib/Target/PIC16/PIC16ISelLowering.cpp @@ -1425,10 +1425,8 @@ SDValue PIC16TargetLowering::LowerADD(SDValue Op, SelectionDAG &DAG) { return DAG.getNode(Op.getOpcode(), dl, MVT::i8, Op.getOperand(MemOp ^ 1), NewVal); } - else if (Op.getOpcode() == ISD::ADD) - return Op; else - return SDValue(); + return Op; } SDValue PIC16TargetLowering::LowerSUB(SDValue Op, SelectionDAG &DAG) { @@ -1439,7 +1437,7 @@ SDValue PIC16TargetLowering::LowerSUB(SDValue Op, SelectionDAG &DAG) { // Nothing to do if the first operand is already a direct load and it has // only one use. if (isDirectLoad(Op.getOperand(0)) && Op.getOperand(0).hasOneUse()) - return SDValue(); + return Op; // Put first operand on stack. SDValue NewVal = ConvertToMemOperand (Op.getOperand(0), DAG, dl); |