Bug fix on stable hash calculation for machine operands RegisterMask and RegisterLiveOut
authorYongKang Zhu <yongzhu@fb.com>
Mon, 12 Sep 2022 20:24:47 +0000 (13:24 -0700)
committerKyungwoo Lee <kyulee@fb.com>
Mon, 12 Sep 2022 20:25:04 +0000 (13:25 -0700)
commit481a32f58745a1216589c5263772030e16011a45
tree344eae0b687f3ea8519aa93ffea1da4d199d5339
parent4a72459ed639e3eb7188565c758181c43d3192aa
Bug fix on stable hash calculation for machine operands RegisterMask and RegisterLiveOut

MachineOperand::getRegMask() returns a pointer to register mask.  We should hash the raw content of register mask instead of its pointer.

Reviewed By: kyulee

Differential Revision: https://reviews.llvm.org/D133637
llvm/include/llvm/CodeGen/MachineOperand.h
llvm/lib/CodeGen/MachineOperand.cpp
llvm/lib/CodeGen/MachineStableHash.cpp