summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-05-18 23:21:46 +0000
committerDan Gohman <gohman@apple.com>2007-05-18 23:21:46 +0000
commitc12dd5207d68fe7771cd0ad08859180e67499ca5 (patch)
tree192ae60bc8a15cb41fe23b4c8af65dc36c5e0ba9 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent7ea2df6e2a9826e203c6681fe1ea712807944cac (diff)
downloadbcm5719-llvm-c12dd5207d68fe7771cd0ad08859180e67499ca5.tar.gz
bcm5719-llvm-c12dd5207d68fe7771cd0ad08859180e67499ca5.zip
Apply this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070514/049845.html llvm-svn: 37240
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 818fcd5f59a..9723c7c8c2a 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -222,7 +222,7 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
// First set operation action for all vector types to expand. Then we
// will selectively turn on ones that can be effectively codegen'd.
for (unsigned VT = (unsigned)MVT::FIRST_VECTOR_VALUETYPE;
- VT != (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++VT) {
+ VT <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++VT) {
// add/sub are legal for all supported vector VT's.
setOperationAction(ISD::ADD , (MVT::ValueType)VT, Legal);
setOperationAction(ISD::SUB , (MVT::ValueType)VT, Legal);
OpenPOWER on IntegriCloud