[WebAssembly] Create new registers instead of reusing old ones in RegStackify.
authorDan Gohman <dan433584@gmail.com>
Tue, 16 Feb 2016 15:17:21 +0000 (15:17 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 16 Feb 2016 15:17:21 +0000 (15:17 +0000)
commit8aa237c3caaaedbf638df545142ca1a2ad473e04
treea913489f4bbc0d20fb420b7ef6ce85ffe08011d9
parent944f655e05e0bb889f63a9949fd4bb3c0d040ae6
[WebAssembly] Create new registers instead of reusing old ones in RegStackify.

This avoids some complications updating LiveIntervals to be aware of the new
register lifetimes, because we can just compute new intervals from scratch
rather than describe how the old ones have been changed.

llvm-svn: 260971
llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
llvm/test/CodeGen/WebAssembly/reg-stackify.ll
llvm/test/CodeGen/WebAssembly/varargs.ll