[llvm] [CodeGen] Introduce MIR-level target-independent rematerialization helper (PR #177080)
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 17:54:46 PST 2026
================
@@ -0,0 +1,452 @@
+//===- RematerializerTest.cpp ---------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
----------------
qcolombet wrote:
I only glanced at the tests so I may have missed them but I think we are missing a few edge cases:
- Empty regions
- Multiple terminators in a region
- Check that the LIS are still correct (call the verifier) after update
- Negative tests: don't touch physreg that are not ignoreable, subregister
https://github.com/llvm/llvm-project/pull/177080
More information about the llvm-commits
mailing list