summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2019-05-14 16:51:18 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2019-05-14 16:51:18 +0000
commit7c5c0c9fe59b77e628024dec48b9db1f36f41c15 (patch)
tree69888b3eb2d2b8422e08baab1e599da61174cff7 /llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
parent19ae9d010dcfaa14b86fdcdeae14b7bebf1a281b (diff)
downloadbcm5719-llvm-7c5c0c9fe59b77e628024dec48b9db1f36f41c15.tar.gz
bcm5719-llvm-7c5c0c9fe59b77e628024dec48b9db1f36f41c15.zip
Support FNeg in SpeculativeExecution pass
Differential Revision: https://reviews.llvm.org/D61910 llvm-svn: 360692
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp b/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
index 79d2a52b393..f9d027eb4a3 100644
--- a/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
+++ b/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
@@ -240,6 +240,7 @@ static unsigned ComputeSpeculationCost(const Instruction *I,
case Instruction::FMul:
case Instruction::FDiv:
case Instruction::FRem:
+ case Instruction::FNeg:
case Instruction::ICmp:
case Instruction::FCmp:
return TTI.getUserCost(I);
OpenPOWER on IntegriCloud