[MIRPrinter] Fix incorrect output of unnamed stack names
authorGabriel Hjort Ã…kerlund <gabriel.hjort.akerlund@ericsson.com>
Mon, 28 Dec 2020 16:41:25 +0000 (17:41 +0100)
committerMikael Holmen <mikael.holmen@ericsson.com>
Mon, 28 Dec 2020 17:01:40 +0000 (18:01 +0100)
commitb9a7c89d4322b261b65eb96d678a9d38b776cb60
tree7eab41d98ed22732f7ca10174d118daab3128cba
parentd55627d221be8154cbdf454fa727afcc3f716b08
[MIRPrinter] Fix incorrect output of unnamed stack names

The MIRParser expects unnamed stack entries to have empty names ('').
In case of unnamed alloca instructions, the MIRPrinter would output
'<unnamed alloca>', which caused the MIRParser to reject the generated
code.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D93685
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/test/CodeGen/MIR/AArch64/unnamed-stack.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/alloca-crspill.ll