WebAssembly: don't omit dead vregs from locals
authorJF Bastien <jfb@google.com>
Sat, 17 Oct 2015 00:25:38 +0000 (00:25 +0000)
committerJF Bastien <jfb@google.com>
Sat, 17 Oct 2015 00:25:38 +0000 (00:25 +0000)
commit1c068abaef94f051704c59db1f8daef4ed784a67
tree21e8fc359b6aef59f6abae8065c9644ce283fbac
parent065515c76c0b87183c840d6dc655f8db227bcb03
WebAssembly: don't omit dead vregs from locals

Summary:
This is a temporary hack until we get around to remapping the vreg
numbers to local numbers. Dead vregs cause bad numbering and make
consumers sad.

We could also just look at debug info an use named locals instead, but
vregs have to work properly anyways so there!

Reviewers: binji, sunfish

Subscribers: jfb, llvm-commits, dschuff

Differential Revision: http://reviews.llvm.org/D13839

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
test/CodeGen/WebAssembly/dead-vreg.ll [new file with mode: 0644]