commit | 21495bccdcf3fa598eed37daa9fe5ecc10767e36 | [log] [tgz] |
---|---|---|
author | Dan Gohman <dan433584@gmail.com> | Tue Jan 19 16:59:23 2016 +0000 |
committer | Dan Gohman <dan433584@gmail.com> | Tue Jan 19 16:59:23 2016 +0000 |
tree | 5ff4b46842f8f65077d95f6e58137c3980509069 | |
parent | 9f9435ed260c07bfe732e00217d80e1df840fff8 [diff] |
[WebAssembly] Rematerialize constants rather than hold them live in registers. Teach the register stackifier to rematerialize constants that have multiple uses instead of leaving them in registers. In the WebAssembly encoding, it's the same code size to materialize most constants as it is to read a value from a register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258142 91177308-0d34-0410-b5e6-96231b3b80d8