[llvm] [RA] Disable split around hint register if optimize for size (PR #68619)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 9 13:44:30 PDT 2023
================
@@ -1217,6 +1217,9 @@ bool RAGreedy::trySplitAroundHintReg(MCPhysReg Hint,
const LiveInterval &VirtReg,
SmallVectorImpl<Register> &NewVRegs,
AllocationOrder &Order) {
+ if (MF->getFunction().hasOptSize())
----------------
zmodem wrote:
We should probably add a comment explaining why (may increase code size).
https://github.com/llvm/llvm-project/pull/68619
More information about the llvm-commits
mailing list