(Split of off D67120)
SelectionDAG::shouldOptForSize changes for profile guided size optimization.
Paths
| Differential D70095
[PGO][PGSO] DAG.shouldOptForSize part. ClosedPublic Authored by hjyamauchi on Nov 11 2019, 11:02 AM.
Details
Summary (Split of off D67120) SelectionDAG::shouldOptForSize changes for profile guided size optimization.
Diff Detail
Event TimelineComment Actions I don't know about the overall changes planned, but this seems fine. Comment Actions
WebAssembly too? class WebAssemblyDAGToDAGISel final : public SelectionDAGISel { ... bool ForCodeSize; ... ForCodeSize = MF.getFunction().hasOptSize();
Comment Actions Does WebAssembly still need updating ?
Herald added subscribers: aheejin, jgravelle-google, sbc100, dschuff. · View Herald TranscriptNov 21 2019, 10:54 AM Comment Actions
I somehow missed the WebAssembly comment. Thanks for reminding. I think we can remove WebAssemblyDAGToDAGISel::ForCodeSize and the hasOptSize call. Comment Actions
LGTM. This revision is now accepted and ready to land.Nov 21 2019, 11:40 AM Comment Actions LGTM - as @spatel suggested either wait a day or split off the WebAssembly diff (it appears to be completely independent + superfluous) into a separate patch for review and then you can commit this immediately. Closed by commit rG52e377497ddc: [PGO][PGSO] DAG.shouldOptForSize part. (authored by hjyamauchi). · Explain WhyNov 21 2019, 2:21 PM This revision was automatically updated to reflect the committed changes. hjyamauchi added a child revision: D67120: [PGO] Profile guided code size optimization (continued)..Nov 22 2019, 10:49 AM
Revision Contents
Diff 228917 llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/include/llvm/CodeGen/SelectionDAGISel.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/lib/Target/X86/X86FastISel.cpp
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86InstrInfo.td
llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
llvm/utils/TableGen/GlobalISelEmitter.cpp
|
initialize with = nullptr