[llvm] r358336 - [WebAssembly] Use Function::hasOptSize() (NFC)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 13 09:54:39 PDT 2019
Author: aheejin
Date: Sat Apr 13 09:54:39 2019
New Revision: 358336
URL: http://llvm.org/viewvc/llvm-project?rev=358336&view=rev
Log:
[WebAssembly] Use Function::hasOptSize() (NFC)
Summary: Use member function.
Reviewers: aheejin
Subscribers: sunfish, hiraditya, sbc100, jgravelle-google, dschuff, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60651
Patch by Hideto Ueno (uenoku)
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp?rev=358336&r1=358335&r2=358336&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp Sat Apr 13 09:54:39 2019
@@ -51,8 +51,7 @@ public:
"********** 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);
}
More information about the llvm-commits
mailing list