[llvm] [NFC] Simplify checks using isDebugOrPseudoInstr API (PR #145127)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 18:46:30 PDT 2025
================
@@ -858,7 +858,7 @@ void RegPressureTracker::recedeSkipDebugValues() {
void RegPressureTracker::recede(SmallVectorImpl<VRegMaskOrUnit> *LiveUses) {
recedeSkipDebugValues();
- if (CurrPos->isDebugInstr() || CurrPos->isPseudoProbe()) {
+ if (CurrPos->isDebugOrPseudoInstr()) {
----------------
wlei-llvm wrote:
Sounds good, any suggestions? would `isDebugOrPseudoProbeInstr` be better?
Would it be ok to check in the current diff first? as the changes are independent of the naming, I'll create a separate diff for the name change.
https://github.com/llvm/llvm-project/pull/145127
More information about the llvm-commits
mailing list