From 87e368b7db8ec570b82f94c706734320a7145e6c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Feb 2016 19:22:44 +0000 Subject: [PATCH] [WebAssembly] Add another optimization idea to README.txt. llvm-svn: 261354 --- llvm/lib/Target/WebAssembly/README.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/lib/Target/WebAssembly/README.txt b/llvm/lib/Target/WebAssembly/README.txt index 68f902ee59f5..a2b35b234474 100644 --- a/llvm/lib/Target/WebAssembly/README.txt +++ b/llvm/lib/Target/WebAssembly/README.txt @@ -100,3 +100,9 @@ WebAssembly registers are implicitly initialized to zero. Explicit zeroing is therefore often redundant and could be optimized away. //===---------------------------------------------------------------------===// + +Small indices may use smaller encodings than large indices. +WebAssemblyRegRenumbering should sort registers according to their usage +frequency to maximize the usage of smaller encodings. + +//===---------------------------------------------------------------------===//