[PATCH] D21808: [WebAssembly] Handle debug information and virtual registers without crashing

Dominic Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 11:42:38 PDT 2016


ddcc created this revision.
ddcc added reviewers: jfb, sunfish, dschuff.
ddcc added a subscriber: llvm-commits.
Herald added subscribers: dschuff, jfb, MatzeB.

Currently, enabling debug information when compiling for WebAssembly crashes the backend in multiple places. This commit fixes these by skipping virtual registers when computing history of DBG_VALUEs, skipping DBG_VALUEs when computing live intervals, and handling DBG_VALUEs correctly in backend passes.

http://reviews.llvm.org/D21808

Files:
  lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
  lib/CodeGen/LiveIntervalAnalysis.cpp
  lib/CodeGen/LiveRangeCalc.cpp
  lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
  test/DebugInfo/WebAssembly/live-intervals.ll
  test/DebugInfo/WebAssembly/variable.ll
  test/DebugInfo/WebAssembly/wasm-reg-stackify.ll
  test/DebugInfo/WebAssembly/wasm-store-results.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21808.62120.patch
Type: text/x-patch
Size: 54217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160628/889ee3bb/attachment.bin>


More information about the llvm-commits mailing list