[WebAssembly] Fix MRI.hasOneNonDBGUse assert in WebAssemblyRegStackify pass 

Summary:
The OneUseDominatesOtherUses in the WebAssemblyRegStackify not properly validates register use using hasOneUse. Since we added/modified DBG_VALUE the assert started catching valid cases.

See also https://reviews.llvm.org/D49034#1247200

Fix verified by running the wasm waterfall.

Reviewed By: dschuff

Tags: #debug-info

Differential Revision: https://reviews.llvm.org/D49034


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343154 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed