mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove the `hasFnAttr' method from Function.
The hasFnAttr method has been replaced by querying the Attributes explicitly. No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3820,7 +3820,7 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
||||
|
||||
// Unless optimizing for size, don't fold to avoid partial
|
||||
// register update stalls
|
||||
if (!MF.getFunction()->hasFnAttr(Attribute::OptimizeForSize) &&
|
||||
if (!MF.getFunction()->getFnAttributes().hasOptimizeForSizeAttr() &&
|
||||
hasPartialRegUpdate(MI->getOpcode()))
|
||||
return 0;
|
||||
|
||||
@@ -3861,7 +3861,7 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
||||
|
||||
// Unless optimizing for size, don't fold to avoid partial
|
||||
// register update stalls
|
||||
if (!MF.getFunction()->hasFnAttr(Attribute::OptimizeForSize) &&
|
||||
if (!MF.getFunction()->getFnAttributes().hasOptimizeForSizeAttr() &&
|
||||
hasPartialRegUpdate(MI->getOpcode()))
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user