diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp index df3057d62c7..cc5fae4a869 100644 --- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp +++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp @@ -1008,6 +1008,9 @@ static bool canTailPredicateInstruction(Instruction &I, int &ICmpCount) { if (isa<ICmpInst>(&I) && ++ICmpCount > 1) return false; + if (isa<FCmpInst>(&I)) + return false; + // We could allow extending/narrowing FP loads/stores, but codegen is // too inefficient so reject this for now. if (isa<FPExtInst>(&I) || isa<FPTruncInst>(&I)) |