use minSize wrapper; NFCI
[oota-llvm.git] / lib / Target / ARM / ARMSubtarget.cpp
index 6c07a2f43a3bbfb80cf0fcf7caf115d96ccb5144..50e9e6a73977a13f666667f343e2bd5e9659b034 100644 (file)
@@ -286,7 +286,7 @@ bool ARMSubtarget::enableAtomicExpand() const {
 }
 
 bool ARMSubtarget::useStride4VFPs(const MachineFunction &MF) const {
-  return isSwift() && !MF.getFunction()->hasFnAttribute(Attribute::MinSize);
+  return isSwift() && !MF.getFunction()->optForMinSize();
 }
 
 bool ARMSubtarget::useMovt(const MachineFunction &MF) const {