[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 15 14:40:23 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPCISelDAGToDAG.cpp updated: 1.103 -> 1.104
---
Log message:
remove dead code
---
Diffs of the changes: (+3 -8)
PPCISelDAGToDAG.cpp | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.103 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.104
--- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.103 Fri Oct 14 18:59:06 2005
+++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Sat Oct 15 16:40:12 2005
@@ -233,7 +233,7 @@
if (IsShiftMask) Mask = Mask << Shift;
// determine which bits are made indeterminant by shift
Indeterminant = ~(0xFFFFFFFFu << Shift);
- } else if (Opcode == ISD::SRA || Opcode == ISD::SRL) {
+ } else if (Opcode == ISD::SRL) {
// apply shift right to mask if it comes first
if (IsShiftMask) Mask = Mask >> Shift;
// determine which bits are made indeterminant by shift
@@ -1277,13 +1277,8 @@
return SDOperand(N, 0);
}
case ISD::SRA: {
- unsigned Imm, SH, MB, ME;
- if (0 &&isOpcWithIntImmediate(N->getOperand(0).Val, ISD::AND, Imm) &&
- isRotateAndMask(N, Imm, true, SH, MB, ME))
- CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32,
- Select(N->getOperand(0).getOperand(0)),
- getI32Imm(SH), getI32Imm(MB), getI32Imm(ME));
- else if (isIntImmediate(N->getOperand(1), Imm))
+ unsigned Imm;
+ if (isIntImmediate(N->getOperand(1), Imm))
CurDAG->SelectNodeTo(N, PPC::SRAWI, MVT::i32, Select(N->getOperand(0)),
getI32Imm(Imm));
else
More information about the llvm-commits
mailing list