[all-commits] [llvm/llvm-project] 01fd39: [CodeGen] Refactor rematerializer unit tests to re...

Lucas Ramirez via All-commits all-commits at lists.llvm.org
Wed Jun 10 05:37:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01fd39a7620e7005a98b3bc3d26ec3c828811847
      https://github.com/llvm/llvm-project/commit/01fd39a7620e7005a98b3bc3d26ec3c828811847
  Author: Lucas Ramirez <11032120+lucas-rami at users.noreply.github.com>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M llvm/unittests/CodeGen/RematerializerTest.cpp

  Log Message:
  -----------
  [CodeGen] Refactor rematerializer unit tests to reduce boilerplate (NFC) (#197575)

Taking inspiration from other unit tests, this refactors the
rematerializer's unit tests with the aim of reducing the amount of
repetitive boilerplate code in each individual test, making the addition
of new tests easier/faster in the future.

Each unit test defines some input MIR to instantiate a rematerializer
on; a user-provided callback is then invoked with a pre-initialized
rematerializer wrapped in a helper object that factors out as much
common verification logic as possible.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list