From: Hal Finkel Date: Tue, 8 Apr 2014 19:00:27 +0000 (+0000) Subject: [PowerPC] Don't return false from PPC::isVSLDOIShuffleMask X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c0c10f20a20f281b79adf4b9cf995c5144338078;p=oota-llvm.git [PowerPC] Don't return false from PPC::isVSLDOIShuffleMask PPC::isVSLDOIShuffleMask should return -1, not false, when the shuffle predicate should be false. Noticed by inspection; no test case (yet). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205787 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 6dd919edfe8..d1c07566a0c 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -929,7 +929,7 @@ bool PPC::isVMRGHShuffleMask(ShuffleVectorSDNode *N, unsigned UnitSize, /// amount, otherwise return -1. int PPC::isVSLDOIShuffleMask(SDNode *N, bool isUnary) { if (N->getValueType(0) != MVT::v16i8) - return false; + return -1; ShuffleVectorSDNode *SVOp = cast(N);