[all-commits] [llvm/llvm-project] d28018: [TableGen] Re-work FactorNodes to avoid an extra t...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sat Apr 22 21:05:36 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d28018709375808ea147e66d96af1e81fd9fe8a6
https://github.com/llvm/llvm-project/commit/d28018709375808ea147e66d96af1e81fd9fe8a6
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-04-22 (Sat, 22 Apr 2023)
Changed paths:
M llvm/utils/TableGen/DAGISelMatcher.h
M llvm/utils/TableGen/DAGISelMatcherOpt.cpp
Log Message:
-----------
[TableGen] Re-work FactorNodes to avoid an extra temporary vector.
Instead of copying elements to the NewOptionsToMatchVector, we
now shift down elements in OptionsToMatch as we create holes by
pulling out equal matchers. After we finish processing the vector,
we'll trim the size to just the elements that are still in use.
More information about the All-commits
mailing list