[llvm] r256306 - [WebAssembly] Add a TODO comment for a possible future optimization.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 22 16:22:04 PST 2015
Author: djg
Date: Tue Dec 22 18:22:04 2015
New Revision: 256306
URL: http://llvm.org/viewvc/llvm-project?rev=256306&view=rev
Log:
[WebAssembly] Add a TODO comment for a possible future optimization.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp?rev=256306&r1=256305&r2=256306&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp Tue Dec 22 18:22:04 2015
@@ -82,7 +82,8 @@ bool WebAssemblyRegNumbering::runOnMachi
}
// Then assign regular WebAssembly registers for all remaining used
- // virtual registers.
+ // virtual registers. TODO: Consider sorting the registers by frequency of
+ // use, to maximize usage of small immediate fields.
unsigned NumArgRegs = MFI.getParams().size();
unsigned NumVRegs = MF.getRegInfo().getNumVirtRegs();
unsigned NumStackRegs = 0;
More information about the llvm-commits
mailing list