[PATCH] D11866: transform fmin/fmax calls when possible (PR24314)

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 8 13:26:21 PDT 2015


jmolloy added a comment.

Hi Sanjay,

Generally this looks fine, but you should be adding the nnan and nsz attributes to the fcmp instruction via the IRBuilder for value tracking to pick up the relaxedness.

This will be important when my latest patches finally land and x86 uses the new ISD::FMINNAN nodes (which represent the semantics of minss precisely).

Cheers,

James


http://reviews.llvm.org/D11866





More information about the llvm-commits mailing list