spavloff wrote:

> Hmm. Is there some sort of optimization in IRGen that we need to suppress 
> here, or is it something in LLVM code gen? Presumably normal LLVM 
> optimization passes all just skip `optnone` functions.

The issue https://github.com/llvm/llvm-project/issues/62098 demonstrates such 
case. Anyway, It is not good to have bogus attributes in AST.

> Mostly I'm wondering how far we're expected to go with `optnone`.

It impedes implementation of pragma FENV_ROUND. The pragma requires setting FP 
options inside CompoundStmt and it interacts with the fictious attributes. This 
is the reason of this patch.



https://github.com/llvm/llvm-project/pull/85605
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to