[PATCH] D109077: Do not attempt rematerialization with a killed register use
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 20 14:17:22 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/TargetInstrInfo.cpp:988-990
+ // Do not bother to try rematerializing an instruction with a killed use,
+ // the value of the operand will not be available anyway.
+ if (MO.isKill())
----------------
Can't the caller base this check on the live segment?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109077/new/
https://reviews.llvm.org/D109077
More information about the llvm-commits
mailing list