[all-commits] [llvm/llvm-project] c67c41: [RISCV] Split out transfer function explicitly in ...

Philip Reames via All-commits all-commits at lists.llvm.org
Tue Jun 14 14:07:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c67c4133accb4432c13939e0dcf957732747b55c
      https://github.com/llvm/llvm-project/commit/c67c4133accb4432c13939e0dcf957732747b55c
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

  Log Message:
  -----------
  [RISCV] Split out transfer function explicitly in VSETVLI insertion dataflow [nfc]

In an effort to make this code easier to read and extend, this splits out helper functions for the transfer function of the data flow. Due to the other results computed during the phases, we can't completely abstract away everything, but we can abstract the actual state transitions.

The motivation here is the following upcoming changes:
* The fault first load patch - already approved, this will be rebased over - adds another case into the transferAfter path.
* An upcoming patch to fold the local prepass back into the main algorithm greatly complicates the transferBefore logic.

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




More information about the All-commits mailing list