projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WebAssembly] Introduce a new pseudo-operand for unused expression results.
[oota-llvm.git]
/
lib
/
Target
/
WebAssembly
/
WebAssemblyMachineFunctionInfo.cpp
diff --git
a/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
b/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
index 542d984b900626bdee0f23a565915c1018756c1d..225c5d32cb5d12a7de7ab873771c2eaff263bc66 100644
(file)
--- a/
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
+++ b/
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
@@
-17,3
+17,9
@@
using namespace llvm;
WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() {}
+
+void WebAssemblyFunctionInfo::initWARegs() {
+ assert(WARegs.empty());
+ unsigned Reg = UnusedReg;
+ WARegs.resize(MF.getRegInfo().getNumVirtRegs(), Reg);
+}