From: Dan Gohman Date: Wed, 23 Dec 2015 00:22:04 +0000 (+0000) Subject: [WebAssembly] Add a TODO comment for a possible future optimization. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=97cdf9dc307204455ec70756226c9799afddcd4c;p=oota-llvm.git [WebAssembly] Add a TODO comment for a possible future optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256306 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp b/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp index 0a945336a2b..f621db070b5 100644 --- a/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp +++ b/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp @@ -82,7 +82,8 @@ bool WebAssemblyRegNumbering::runOnMachineFunction(MachineFunction &MF) { } // 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;