[all-commits] [llvm/llvm-project] 5c63b2: [GlobalISel] Add a m_SpecificReg matcher
Jessica Paquette via All-commits
all-commits at lists.llvm.org
Thu Oct 6 11:36:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5c63b24ec8fde29023af1213a4685df1d4a58dde
https://github.com/llvm/llvm-project/commit/5c63b24ec8fde29023af1213a4685df1d4a58dde
Author: Jessica Paquette <jpaquette at apple.com>
Date: 2022-10-06 (Thu, 06 Oct 2022)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
Log Message:
-----------
[GlobalISel] Add a m_SpecificReg matcher
Similar to the specific matchers for constants.
The intention here is to make it easier to write combines which check if a
specific register is used more than once.
e.g. matching patterns like:
```
(X + Y) == Y
```
Differential Revision: https://reviews.llvm.org/D135378
More information about the All-commits
mailing list