search for: lhsshift

Displaying 1 result from an estimated 1 matches for "lhsshift".

2007 Mar 30
1
[LLVMdev] Cleanups in ROTL/ROTR DAG combiner code
...============================================== --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp (.../trunk) (revision 2118) +++ lib/CodeGen/SelectionDAG/DAGCombiner.cpp (.../branches/llvm-spu) (revision 2118) @@ -1488,23 +1488,24 @@ } unsigned OpSizeInBits = MVT::getSizeInBits(VT); + SDOperand LHSShiftArg = LHSShift.getOperand(0); + SDOperand LHSShiftAmt = LHSShift.getOperand(1); + SDOperand RHSShiftAmt = RHSShift.getOperand(1); // fold (or (shl x, C1), (srl x, C2)) -> (rotl x, C1) // fold (or (shl x, C1), (srl x, C2)) -> (rotr x, C2) - if (LHSShift.getOperand(1).getOpcode() == I...