aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-08-29 16:01:17 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-08-29 16:01:17 +0000
commit85cbc7e371be14056e951e9715fc5d89ce609506 (patch)
treef2a69401871e256fcbff9a4f44047744d0a218bd /llvm/lib/Analysis/ValueTracking.cpp
parent8675db15da46792ea79cebb4c58bd0193167d741 (diff)
downloadllvm-85cbc7e371be14056e951e9715fc5d89ce609506.zip
llvm-85cbc7e371be14056e951e9715fc5d89ce609506.tar.gz
llvm-85cbc7e371be14056e951e9715fc5d89ce609506.tar.bz2
Make fabs safe to speculatively execute
llvm-svn: 216736
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index ce945eb..6409b85 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -2009,6 +2009,7 @@ bool llvm::isSafeToSpeculativelyExecute(const Value *V,
case Intrinsic::sqrt:
case Intrinsic::fma:
case Intrinsic::fmuladd:
+ case Intrinsic::fabs:
return true;
// TODO: some fp intrinsics are marked as having the same error handling
// as libm. They're safe to speculate when they won't error.