[LLVMdev] TargetTransformInfo::getIntImmCost() and code size

Steve King steve at metrokings.com
Mon Feb 2 11:17:31 PST 2015


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



More information about the llvm-dev mailing list