This is from code review of https://github.com/llvm/llvm-project/pull/95837#discussion_r1643647221
We should use the `getDwarfRegNum()` defined in `MCRegisterInfo.h` instead of defining a new one in [llvm/lib/CodeGen/StackMaps.cpp](https://github.com/llvm/llvm-project/pull/95837/files/35667789a4ca64173b0240a37a8e85c1a426c2e9#diff-2634df2e1fb79253f14db36043207f9ef3d719222e63e0508ea67b3caf9d9064)
The DwarfRegAlias may not be needed if we implement the `getDwarfRegNum()` by sharing the DWARF reg numbers among sub/supper registers.
This is from code review of https://github.com/llvm/llvm-project/pull/95837#discussion_r1643647221
We should use the
getDwarfRegNum()
defined inMCRegisterInfo.h
instead of defining a new one in llvm/lib/CodeGen/StackMaps.cppThe DwarfRegAlias may not be needed if we implement the
getDwarfRegNum()
by sharing the DWARF reg numbers among sub/supper registers.