[LLVMdev] TargetLowering vs. TargetTransform
renato.golin at linaro.org
Fri Jan 25 08:21:04 PST 2013
I'm looking for a place where to put the costs of vector (and scalar) cast
operations for ARM, but I noticed the TargetTransform methods call the
TargetLowering ones when unsure.
Now, I'm not sure...
Many casts on ARM are free, and I could build a list of cases where it is
true, but should I put this on the lowering or the transform? My main
motivation is to get the costs right for the vectorization pass, but I
think this should be generally available to any pass that needs it.
What are the uses of each and, is there a general rule of thumb for using
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev