summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2013-04-23 18:09:28 +0000
committerOwen Anderson <resistor@mac.com>2013-04-23 18:09:28 +0000
commited5707baf9be36c0d06c278f589b6c55db8b96c0 (patch)
treeadc2b1c64d4a02d52fc592173f1171279cb1d6f4 /lib/Target/PowerPC/PPCISelLowering.cpp
parent3579a29dba8fcc7285a3a5bec4512b4ca0a91ab3 (diff)
downloadllvm-ed5707baf9be36c0d06c278f589b6c55db8b96c0.tar.gz
llvm-ed5707baf9be36c0d06c278f589b6c55db8b96c0.tar.bz2
llvm-ed5707baf9be36c0d06c278f589b6c55db8b96c0.tar.xz
DAGCombine should not aggressively fold SEXT(VSETCC(...)) into a wider VSETCC without first checking the target's vector boolean contents.
This exposed an issue with PowerPC AltiVec where it appears it was setting the wrong vector boolean contents. The included change fixes the PowerPC tests, and was OK'd by Hal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index 333976b06c..27dfcdbfea 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -514,7 +514,7 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
setOperationAction(ISD::ATOMIC_STORE, MVT::i64, Expand);
setBooleanContents(ZeroOrOneBooleanContent);
- setBooleanVectorContents(ZeroOrOneBooleanContent); // FIXME: Is this correct?
+ setBooleanVectorContents(ZeroOrNegativeOneBooleanContent); // FIXME: Is this correct?
if (isPPC64) {
setStackPointerRegisterToSaveRestore(PPC::X1);