mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-06 01:27:08 +00:00
TailDuplicator: Use optForSize instead of hasFnAttribute.
This will cause minsize functions to have the same threshold as optsize functions, but otherwise should have no effects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7526feb22f
commit
af9bccaaa4
@ -513,7 +513,7 @@ bool TailDuplicator::shouldTailDuplicate(const MachineFunction &MF,
|
||||
unsigned MaxDuplicateCount;
|
||||
if (TailDuplicateSize.getNumOccurrences() == 0 &&
|
||||
// FIXME: Use Function::optForSize().
|
||||
MF.getFunction()->hasFnAttribute(Attribute::OptimizeForSize))
|
||||
MF.getFunction()->optForSize())
|
||||
MaxDuplicateCount = 1;
|
||||
else
|
||||
MaxDuplicateCount = TailDuplicateSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user