diff options
author | Jan Voung <jvoung@chromium.org> | 2013-06-19 16:12:25 -0700 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-06-19 16:12:25 -0700 |
commit | 73af8c9c57122e5ae61f80d916653db0dbb1e91f (patch) | |
tree | 49fdcd5d299096f2cf86f9eb8360394ef5d14054 /lib/Transforms/NaCl/PNaClABISimplify.cpp | |
parent | bce9cade729651fdddd9852d0467e0cd7476a54f (diff) |
Rewrite llvm.flt.rounds to "1" for now, and disallow llvm.flt.rounds.
Until there is an intrinsic to *set* the rounding mode,
this intrinsic to *get* the rounding mode isn't so useful.
Separately we will add a test that for each platform, the
initial rounding mode is "1" (round to nearest). That is
the case right now for x86, ARM, and MIPS.
(see https://codereview.chromium.org/16785003/)
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3491
R=mseaborn@chromium.org
Review URL: https://codereview.chromium.org/17229007
Diffstat (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp')
-rw-r--r-- | lib/Transforms/NaCl/PNaClABISimplify.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp index 0fd7176ed9..a85829eb3b 100644 --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp @@ -25,6 +25,8 @@ void llvm::PNaClABISimplifyAddPreOptPasses(PassManager &PM) { // LowerExpect converts Intrinsic::expect into branch weights, // which can then be removed after BlockPlacement. PM.add(createLowerExpectIntrinsicPass()); + // Rewrite unsupported intrinsics to simpler constructs. + PM.add(createRewriteLLVMIntrinsicsPass()); // LowerInvoke prevents use of C++ exception handling, which is not // yet supported in the PNaCl ABI. PM.add(createLowerInvokePass()); |