diff options
author | Dan Gohman <gohman@apple.com> | 2007-05-18 18:44:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-05-18 18:44:07 +0000 |
commit | fa0f77d9b754af16b21634c71ef98a7b8103c447 (patch) | |
tree | f77488b361544e64d52ef948d7604d537f626523 | |
parent | fcc4dd91e5d4ba2f8fb8bd9ff24ee0ca0e08ab30 (diff) |
Use MVT::FIRST_VECTOR_VALUETYPE and MVT::LAST_VECTOR_VALUETYPE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37234 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 03a56aacf3..cacbd162c9 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -309,8 +309,8 @@ X86TargetLowering::X86TargetLowering(TargetMachine &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::Vector + 1; - VT != (unsigned)MVT::LAST_VALUETYPE; VT++) { + for (unsigned VT = (unsigned)MVT::FIRST_VECTOR_VALUETYPE; + VT <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++VT) { setOperationAction(ISD::ADD , (MVT::ValueType)VT, Expand); setOperationAction(ISD::SUB , (MVT::ValueType)VT, Expand); setOperationAction(ISD::FADD, (MVT::ValueType)VT, Expand); |