[llvm] [LLVM][TableGen] Code cleanup in FastISelEmitter.cpp (PR #139644)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Tue May 13 05:37:32 PDT 2025
================
@@ -71,10 +71,7 @@ class ImmPredicateSet {
return Entry - 1;
}
- const TreePredicateFn &getPredicate(unsigned i) {
- assert(i < PredsByName.size());
- return PredsByName[i];
- }
+ const TreePredicateFn &getPredicate(unsigned Idx) { return PredsByName[Idx]; }
----------------
jurahul wrote:
Because `PredsByName` is a vector and it's [] operator does this same check in assert enabled builds.
https://github.com/llvm/llvm-project/pull/139644
More information about the llvm-commits
mailing list