diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2019-11-21 13:21:48 -0800 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2019-11-22 09:00:23 -0800 |
commit | 70a3c9f55f8494829d06caae0ab988da518d0e15 (patch) | |
tree | ffe8bec98d96caf0b51527c10dda433aba02a989 | |
parent | 5459a905c23c03fad68e80b2dff23ca1ca3b7c7c (diff) | |
download | bcm5719-llvm-70a3c9f55f8494829d06caae0ab988da518d0e15.tar.gz bcm5719-llvm-70a3c9f55f8494829d06caae0ab988da518d0e15.zip |
[WebAssembly][SelectionDAG] Remove unused WebAssemblyDAGToDAGISel::ForCodeSize.
Summary:
This follows from the discussion at D70095.
D70095 moves hasOptSize calls into SelectionDAG::shouldOptForSize to allow
querying size optimization conditions together with profile guided size
optimization.
Since it appears that size optimizations for WebAssembly SelectionDAG haven't
been implemented yet and thus ForCodeSize is unused, and it would not make a lot
of sense to call shouldOptForSize here as the necessary profile data like
PSI/BFI aren't available at this point, it seems good and less confusing to
remove this for now and use shouldOptForSize when they are implemented in the
future.
Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, aheejin, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70567
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp index f83a8a984ae..435c63a51d8 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp @@ -35,12 +35,10 @@ class WebAssemblyDAGToDAGISel final : public SelectionDAGISel { /// right decision when generating code for different targets. const WebAssemblySubtarget *Subtarget; - bool ForCodeSize; - public: WebAssemblyDAGToDAGISel(WebAssemblyTargetMachine &TM, CodeGenOpt::Level OptLevel) - : SelectionDAGISel(TM, OptLevel), Subtarget(nullptr), ForCodeSize(false) { + : SelectionDAGISel(TM, OptLevel), Subtarget(nullptr) { } StringRef getPassName() const override { @@ -52,7 +50,6 @@ public: "********** Function: " << MF.getName() << '\n'); - ForCodeSize = MF.getFunction().hasOptSize(); Subtarget = &MF.getSubtarget<WebAssemblySubtarget>(); // Wasm64 is not fully supported right now (and is not specified) |