diff options
author | Philip Reames <preames@rivosinc.com> | 2025-09-24 18:52:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-24 18:52:17 -0700 |
commit | ea721e2fa1cd2a35652082dae1d0987de531883d (patch) | |
tree | fa1f6f3bb4969140ffa7a727abefec9938070990 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 151a80bbcea947a097870e8ce9034583936a357b (diff) | |
download | llvm-ea721e2fa1cd2a35652082dae1d0987de531883d.zip llvm-ea721e2fa1cd2a35652082dae1d0987de531883d.tar.gz llvm-ea721e2fa1cd2a35652082dae1d0987de531883d.tar.bz2 |
[TII] Split isTrivialReMaterializable into two versions [nfc] (#160377)
This change builds on https://github.com/llvm/llvm-project/pull/160319
which tries to clarify which *callers* (not backends) assume that the
result is actually trivial.
This change itself should be NFC. Essentially, I'm just renaming the
existing isTrivialRematerializable to the non-trivial version and then
adding a new trivial version (with the same name as the prior function)
and simplifying a few callers which want that semantic.
This change does *not* enable non-trivial remat any more broadly than
was already done for our targets which were lying through the old APIs;
that will come separately. The goal here is simply to make the code
easier to follow in terms of what assumptions are being made where.
---------
Co-authored-by: Luke Lau <luke_lau@icloud.com>
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions