diff options
| author | Dan Gohman <dan433584@gmail.com> | 2016-02-22 17:45:20 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2016-02-22 17:45:20 +0000 |
| commit | 595e8ab22d72283ea2377abfbd6f3ff691391e97 (patch) | |
| tree | 77e7c3a837273f14aa2c773f5be748cc9d05907f /llvm/lib/Target/WebAssembly | |
| parent | a7bdc5ad54fbd5d90c8a5164472ccd80a90a1971 (diff) | |
| download | bcm5719-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.cpp | 6 |
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. |

