[llvm] [NFC] Simplify checks using isDebugOrPseudoInstr API (PR #145127)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 11:06:10 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 with `isDebugInstrOrPseudoProbe`, thank for the suggestion!
https://github.com/llvm/llvm-project/pull/145127
More information about the llvm-commits
mailing list