> On Aug 29, 2022, at 1:07 PM, Jeff Law via Gcc-patches 
> <gcc-patches@gcc.gnu.org> wrote:
> 
> ...
> I guess we could do specialization based on the input range.  So rather than 
> calling "sin" we could call a special one that didn't have the reduction step 
> when we know the input value is in a sensible range.

There's some precedent for that, though for a somewhat different reason: 
functions like "log1p".  And in fact, it would make sense for the optimizer to 
transform log calls into log1p calls when the range is known to be right for 
doing so.

        paul

Reply via email to