Steve King
2015-Feb-02 19:17 UTC
[LLVMdev] TargetTransformInfo::getIntImmCost() and code size
Hello LLVM, When deciding the cost model for getIntImmCost(), should targets consider code size? For example, the cost of materializing a 32-bit immediate may be low, but if the same immediate is materialized repeatedly, code size grows as opposed to burning a register to load the large constant once. Regards, -steve