<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>Agreed - Legal was a poor choice of terms. I don't know if we want to check TLI.isOperationLegal(...) though - an llvm.fma.* call (which is what we lower to) will always be legal...</div>
</div></blockquote><div><br></div><div>Owen pointed out that I'm finding new and interesting ways to abuse the term 'legal' here. To clarify: If isFMACheap returns true we should legalize the llvm.fmuladd.* to an llvm.fma.* and leave it to the existing legalization code to turn the llvm.fma.* into something sane for the target.</div>
<div><br></div><div>- Lang.</div></div>