[all-commits] [llvm/llvm-project] fdc6f4: [llvm] Fixing MIRVRegNamerUtils to properly handle...

Puyan Lotfi via All-commits all-commits at lists.llvm.org
Wed Dec 4 15:36:37 PST 2019


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

  Changed paths:
    M llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
    M llvm/lib/CodeGen/MIRNamerPass.cpp
    M llvm/lib/CodeGen/MIRVRegNamerUtils.h
    A llvm/test/CodeGen/MIR/X86/mir-canon-hash-bb.mir

  Log Message:
  -----------
  [llvm] Fixing MIRVRegNamerUtils to properly handle 2+ MachineBasicBlocks.

An interplay of code from D70210, along with code from the
Value-Numbering-esque hash-based namer from D70210, as well as some
crusty code from the original MIR-Canon code lead to multiple causes of
failure when canonicalizing or renaming vregs for MIR with multiple
basic blocks. This patch fixes those issues while deleting some no
longer needed code and adding a nice diamond test case to boot.

Differential Revision: https://reviews.llvm.org/D70478




More information about the All-commits mailing list