summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-04-30 18:20:33 +0000
committerSanjay Patel <spatel@rotateright.com>2018-04-30 18:20:33 +0000
commit1babf5ff32898056a8c63b4de9efb1cc24ea1a3b (patch)
tree6ffd18063fe56fda16ad51aca426356a7a360453 /llvm/lib
parentc81450e29b0072e1702704e26cc6083c43a6bfc3 (diff)
downloadbcm5719-llvm-1babf5ff32898056a8c63b4de9efb1cc24ea1a3b.tar.gz
bcm5719-llvm-1babf5ff32898056a8c63b4de9efb1cc24ea1a3b.zip
[DAGCombiner] rename function attribute for disabling ftrunc transform
This is the matching name change for the Clang patch at: D46236 rL331209 Differential Revision: https://reviews.llvm.org/D46237 llvm-svn: 331210
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index aefccd2e365..5c47fe21ec8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -10915,8 +10915,8 @@ static SDValue foldFPToIntToFP(SDNode *N, SelectionDAG &DAG,
// unexpected results. Ie, programs may be relying on the platform-specific
// undefined behavior when the float-to-int conversion overflows.
const Function &F = DAG.getMachineFunction().getFunction();
- Attribute CastWorkaround = F.getFnAttribute("fp-cast-overflow-workaround");
- if (CastWorkaround.getValueAsString().equals("true"))
+ Attribute StrictOverflow = F.getFnAttribute("strict-float-cast-overflow");
+ if (StrictOverflow.getValueAsString().equals("false"))
return SDValue();
// We only do this if the target has legal ftrunc. Otherwise, we'd likely be
OpenPOWER on IntegriCloud