[PATCH] D60651: [WebAssembly] Use Function::hasOptSize() (NFC)
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 13 09:56:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL358336: [WebAssembly] Use Function::hasOptSize() (NFC) (authored by aheejin, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60651?vs=195017&id=195019#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60651/new/
https://reviews.llvm.org/D60651
Files:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
@@ -51,8 +51,7 @@
"********** Function: "
<< MF.getName() << '\n');
- ForCodeSize = MF.getFunction().hasFnAttribute(Attribute::OptimizeForSize) ||
- MF.getFunction().hasFnAttribute(Attribute::MinSize);
+ ForCodeSize = MF.getFunction().hasOptSize();
Subtarget = &MF.getSubtarget<WebAssemblySubtarget>();
return SelectionDAGISel::runOnMachineFunction(MF);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60651.195019.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190413/9b2229f8/attachment.bin>
More information about the llvm-commits
mailing list