[all-commits] [llvm/llvm-project] 8b1ec1: [CodeGen] Allow rematerializer to rematerialize at...

Lucas Ramirez via All-commits all-commits at lists.llvm.org
Tue Mar 3 05:42:52 PST 2026


  Branch: refs/heads/users/lucas-rami/rematerializer-end-of-region
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b1ec1c40b63ea351e7323fe287e8ecf7c987a58
      https://github.com/llvm/llvm-project/commit/8b1ec1c40b63ea351e7323fe287e8ecf7c987a58
  Author: Lucas Ramirez <lucas.rami at proton.me>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/Rematerializer.h
    M llvm/lib/CodeGen/Rematerializer.cpp
    M llvm/unittests/CodeGen/RematerializerTest.cpp

  Log Message:
  -----------
  [CodeGen] Allow rematerializer to rematerialize at the end of a block

This makes the rematerializer able to rematerialize MIs at the end of a
basic block. We achive this by tracking the parent basic block of every
region inside the rematerializer and adding an explicit target region to
some of the class's methods. The latter removes the requirement that we
track the MI of every region (`Rematerializer::MIRegion`) after the
analysis phase; the class member is therefore deleted.

This new ability will be used shortly to improve the design of the
rollback mechanism.



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