diff options
| author | Lei Wang <wlei@fb.com> | 2025-10-10 19:30:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-11 11:30:22 +0900 |
| commit | 8a598f1044040ac07d098bec66100f9928c5cbdd (patch) | |
| tree | 41ccdf494b38c23636a8c846fa091e9abb3f32be /llvm/lib/CodeGen/RegisterPressure.cpp | |
| parent | 11571a005a38c91b0519772d9639e91a382cc1db (diff) | |
[NFC] Simplify checks using isDebugOrPseudoInstr API (#145127)
Merge the two checks using the existing API, NFC.
Diffstat (limited to 'llvm/lib/CodeGen/RegisterPressure.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegisterPressure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp index 5f3789050b81..7d4674b3f74f 100644 --- a/llvm/lib/CodeGen/RegisterPressure.cpp +++ b/llvm/lib/CodeGen/RegisterPressure.cpp @@ -858,7 +858,7 @@ void RegPressureTracker::recedeSkipDebugValues() { void RegPressureTracker::recede(SmallVectorImpl<VRegMaskOrUnit> *LiveUses) { recedeSkipDebugValues(); - if (CurrPos->isDebugInstr() || CurrPos->isPseudoProbe()) { + if (CurrPos->isDebugOrPseudoInstr()) { // It's possible to only have debug_value and pseudo probe instructions and // hit the start of the block. assert(CurrPos == MBB->begin()); |
