mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
[BranchFolding] Document why replacing HashMachineInstr with hash_code doesn't work
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -270,7 +270,9 @@ static unsigned HashMachineInstr(const MachineInstr *MI) {
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &Op = MI->getOperand(i);
|
||||
|
||||
// Merge in bits from the operand if easy.
|
||||
// Merge in bits from the operand if easy. We can't use MachineOperand's
|
||||
// hash_code here because it's not deterministic and we sort by hash value
|
||||
// later.
|
||||
unsigned OperandHash = 0;
|
||||
switch (Op.getType()) {
|
||||
case MachineOperand::MO_Register:
|
||||
|
||||
Reference in New Issue
Block a user