HomePhabricator

Set the LLVM FP optimization flags conservatively.

Authored by rjmccall on Jun 11 2020, 3:09 PM.

Description

Set the LLVM FP optimization flags conservatively.

Functions can have local pragmas that override the global settings.
We set the flags eagerly based on global settings, but if we emit
an expression under the influence of a pragma, we clear the
appropriate flags from the function.

In order to avoid doing a ton of redundant work whenever we emit
an FP expression, configure the IRBuilder to default to global
settings, and only reconfigure it when we see an FP expression
that's not using the global settings.

Patch by Michele Scandale!

https://reviews.llvm.org/D80462

Details

Committed
rjmccallJun 11 2020, 3:16 PM
Parents
rGa98d618f6e5f: Fixed assertion in SROA if block has ho successors
Branches
Unknown
Tags
Unknown