diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:10 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:10 +0000 | 
| commit | 93c91e39b29142dec1d03a30df9f6e757f56c193 (patch) | |
| tree | 33a9b014a327e64450b3c9ed46d8c5bdb78ad345 /lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | |
| parent | ca089b24d48ef6fa8da2d0bb8c25bb802c4a95c0 (diff) | |
Notes
Diffstat (limited to 'lib/Target/SystemZ/SystemZTargetTransformInfo.cpp')
| -rw-r--r-- | lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp b/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp index 9ac768b2189d7..506dc74279932 100644 --- a/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp +++ b/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp @@ -372,6 +372,9 @@ int SystemZTTIImpl::getArithmeticInstrCost(          Opcode == Instruction::FMul || Opcode == Instruction::FDiv) {        switch (ScalarBits) {        case 32: { +        // The vector enhancements facility 1 provides v4f32 instructions. +        if (ST->hasVectorEnhancements1()) +          return NumVectors;          // Return the cost of multiple scalar invocation plus the cost of          // inserting and extracting the values.          unsigned ScalarCost = getArithmeticInstrCost(Opcode, Ty->getScalarType()); | 
