From 97cdf9dc307204455ec70756226c9799afddcd4c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 23 Dec 2015 00:22:04 +0000 Subject: [PATCH] [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 --- lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1