summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-02-22 17:45:20 +0000
committerDan Gohman <dan433584@gmail.com>2016-02-22 17:45:20 +0000
commit595e8ab22d72283ea2377abfbd6f3ff691391e97 (patch)
tree77e7c3a837273f14aa2c773f5be748cc9d05907f /llvm/lib/Target/WebAssembly
parenta7bdc5ad54fbd5d90c8a5164472ccd80a90a1971 (diff)
downloadbcm5719-llvm-595e8ab22d72283ea2377abfbd6f3ff691391e97.tar.gz
bcm5719-llvm-595e8ab22d72283ea2377abfbd6f3ff691391e97.zip
[WebAssembly] Properly ignore llvm.dbg.value instructions.
llvm-svn: 261538
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
index 9108b4206cf..d69b7279077 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
@@ -423,7 +423,11 @@ bool WebAssemblyRegStackify::runOnMachineFunction(MachineFunction &MF) {
// Don't nest anything inside an inline asm, because we don't have
// constraints for $push inputs.
if (Insert->getOpcode() == TargetOpcode::INLINEASM)
- break;
+ continue;
+
+ // Ignore debugging intrinsics.
+ if (Insert->getOpcode() == TargetOpcode::DBG_VALUE)
+ continue;
// Iterate through the inputs in reverse order, since we'll be pulling
// operands off the stack in LIFO order.
OpenPOWER on IntegriCloud