[PATCH] Better account for cost of soft fp in Inliner
nrotem at apple.com
Tue Sep 17 15:24:10 PDT 2013
In your patch you are checking for the legality of the instruction. However, I think that what you are trying to do is to estimate the size of the generated instruction. At the moment we don’t have the infrastructure for estimating the size of instructions, but this should not be too difficult to add.
The current design decision is that early passes, such as the inliner, should not use TTI. Only the later “lowering” passes should be able to use TTI.
On Sep 17, 2013, at 3:04 PM, Cameron Esfahani <dirty at apple.com> wrote:
> Attached is a patch and test case to better account for the cost of using floating point on systems which don't have hardware floating point in the Inliner.
> I made a small change to TTI and I'm not 100% happy with the name of the routine I came up with: haveHWFP(). Maybe someone has a better suggestion?
> Cameron Esfahani
> dirty at apple.com
> "All that is necessary for the triumph of evil is that good men do nothing."
> Edmund Burke
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
More information about the llvm-commits