]> granicus.if.org Git - llvm/commitdiff
Fix incorrectly resolved merge conflict
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 4 Aug 2014 23:47:21 +0000 (23:47 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 4 Aug 2014 23:47:21 +0000 (23:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@214822 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 0e7fdc0c8797561bb081d12f55bfc92f3a677ddb..3814aa0d528dc32dabe409ca6dbc916fea582163 100644 (file)
@@ -1005,7 +1005,7 @@ int PPC::isVSLDOIShuffleMask(SDNode *N, bool isUnary, SelectionDAG &DAG) {
   unsigned ShiftAmt = SVOp->getMaskElt(i);
   if (ShiftAmt < i) return -1;
 
-  if (DAG.getTarget().getDataLayout()->isLittleEndian()) {
+  ShiftAmt -= i;
 
   if (!isUnary) {
     // Check the rest of the elements to see if they are consecutive.