Displaying 2 results from an estimated 2 matches for "c9a2ac15".
Did you mean:
c7a2ad15
2012 Apr 16
0
[LLVMdev] Representing -ffast-math at the IR level
...atch for the other changes.
It now also includes a unit test.
Ciao, Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fastm.diff
Type: text/x-patch
Size: 26765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120416/c9a2ac15/attachment.bin>
2012 Apr 16
2
[LLVMdev] Representing -ffast-math at the IR level
Thanks for the updates!
Minor comments:
+ if (!Accuracy)
+ // If it's not a floating point number then it must be 'fast'.
+ return HUGE_VALF;
Can we add an assert instead of a comment? It's just as documenting and
will catch any goofs.
+ // If it's not a floating point number then it must be 'fast'.
+ return !isa<ConstantFP>(MD->getOperand(0));