[WebAssembly] Add a few optimization ideas to README.txt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2016-05-16 18:51:03 +00:00
parent ee1280d412
commit b5e78617f3

View File

@ -113,3 +113,18 @@ particularly when duplicating code, to allow register coloring to be aware of
the duplication.
//===---------------------------------------------------------------------===//
WebAssemblyRegStackify could use AliasAnalysis to reorder loads and stores more
aggressively.
//===---------------------------------------------------------------------===//
WebAssemblyRegStackify is currently a greedy algorithm. This means that, for
example, a binary operator will stackify with its user before its operands.
However, if moving the binary operator to its user moves it to a place where
its operands can't be moved to, it would be better to leave it in place, or
perhaps move it up, so that it can stackify its operands. A binary operator
has two operands and one result, so in such cases there could be a net win by
prefering the operands.
//===---------------------------------------------------------------------===//