[Denormal Number] How will TVM handle denormal numbers?

I am working on optimizing ResNeSt, and I have met the denormal issues. The following is the solution, which sets denormal numbers to zero.

But I am confused that where should I put the codes. There are some requirements:

  1. Target should be checked. This solution can only be applied to CPU.
  2. Developers can easily set flust_to_zero on or off.
  3. The function can only be called once.

_mm_setcsr( _mm_getcsr() | 0x0040 );
_mm_setcsr( _mm_getcsr() | 0x8000 );