[PATCH] D60651: [WebAssembly] Use Function::hasOptSize()
Hideto Ueno via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 13 07:19:26 PDT 2019
uenoku created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.
Use member function.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D60651
Files:
llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
Index: llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
===================================================================
--- llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
+++ llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
@@ -51,8 +51,8 @@
"********** 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.195014.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190413/9454217c/attachment.bin>
More information about the llvm-commits
mailing list