[llvm] [LiveIns] Improve recomputeLiveIns() (PR #88951)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 19:12:07 PDT 2024
================
@@ -477,7 +481,7 @@ class MachineBasicBlock
/// Remove entry from the livein set and return iterator to the next.
livein_iterator removeLiveIn(livein_iterator I);
- std::vector<RegisterMaskPair> getLiveIns() const { return LiveIns; }
+ const std::vector<RegisterMaskPair> getLiveIns() const { return LiveIns; }
----------------
nikic wrote:
Was this supposed to be?
```suggestion
const std::vector<RegisterMaskPair> &getLiveIns() const { return LiveIns; }
```
https://github.com/llvm/llvm-project/pull/88951
More information about the llvm-commits
mailing list