]> granicus.if.org Git - llvm/commit
[GlobalISel] Handle multiple registers in dbg.value intrinsic
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Tue, 20 Aug 2019 16:28:37 +0000 (16:28 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Tue, 20 Aug 2019 16:28:37 +0000 (16:28 +0000)
commit301f36987d7fd3f556f4e4824e23a1148ea01da1
treece5f645261e35fdfcb57ec92e39a0b975b098424
parent07a06dc7470aabd37e58ab57bd3d8826b4cf1ed2
[GlobalISel] Handle multiple registers in dbg.value intrinsic

https://reviews.llvm.org/D66077

The value passed into dbg.value may relate to multiple registers,
each of which need a DBG_VALUE.

This fix calls MIRBuilder.buildDirectDbgValue for each register.

Without this, IR passed in from flang-compiler/flang may fail an
assertion in getOrCreateVReg.

Patch by : peterwaller-arm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369403 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/Generic/DbgValueAggregate.ll [new file with mode: 0644]