[all-commits] [llvm/llvm-project] 816985: [NFC][llvm][MIRVRegNamerUtils] Refactoring GetHash...

Puyan Lotfi via All-commits all-commits at lists.llvm.org
Fri Dec 13 23:49:50 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 816985c12053e0f0654e28e1a517799954ea5360
      https://github.com/llvm/llvm-project/commit/816985c12053e0f0654e28e1a517799954ea5360
  Author: Puyan Lotfi <puyan at puyan.org>
  Date:   2019-12-14 (Sat, 14 Dec 2019)

  Changed paths:
    M llvm/lib/CodeGen/MIRVRegNamerUtils.cpp

  Log Message:
  -----------
  [NFC][llvm][MIRVRegNamerUtils] Refactoring GetHashableMO into switch-statement.

This refactors the if-statements handling the hashing of various
MachineOperand types into a switch-statement. The purpose is to cover
all the basis for all MachineOperand types while being very deliberate
about which MachineOperand types we are not handling and why (better
added comments). This patch is a NFC redo of https://reviews.llvm.org/D71396.
Much of the changes present in D71396 will come in smaller follow-up patches
that will add support for hashing the MachineOperand types that aren't
covered piece-meal with tests for each new case.




More information about the All-commits mailing list