[WebAssembly] Fix RegNumbering for the stack pointer
authorDerek Schuff <dschuff@google.com>
Sat, 23 Jan 2016 01:20:43 +0000 (01:20 +0000)
committerDerek Schuff <dschuff@google.com>
Sat, 23 Jan 2016 01:20:43 +0000 (01:20 +0000)
commit65194682e930c286b6541ec00533351232c85cb5
tree0175046568c5ae8af21a65696cbb1261791441f4
parent93987df0fdfcee054b3e8c79ed83f7e6db1438fb
[WebAssembly] Fix RegNumbering for the stack pointer

Previously it failed to add NumArgRegs to the offset and so clobbered an
already-used register. Now just start the numbering after the arg regs
and don't duplicate the add. Test coverage for this coming shortly with
the implementation of byval.

llvm-svn: 258597
llvm/lib/Target/WebAssembly/WebAssemblyRegNumbering.cpp