Use TE SMC instead of TC SMC in large code model mode,
so that large code model TOC entries could get placed after all
the small code model TOC entries, which reduces the chance of TOC overflow.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
so that code compiled with large code model TOC reference would not
take up spaces from the normal small code model TOC reference.
Probably we need to rephrase the description here.
As my understanding, TE SMC entry is possible to take spaces from the normal small code model TOC reference? But it would let TC SMC entry take up those space first and TE then follows.
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | ||
---|---|---|
2204 | Slightly prefer inline IsLarge since it's used once and also not too long. |
Slightly prefer inline IsLarge since it's used once and also not too long.