[all-commits] [llvm/llvm-project] d21f30: [MIPatternMatch] Fix incorrect argument type of m_...
Min-Yih Hsu via All-commits
all-commits at lists.llvm.org
Thu Dec 26 09:09:24 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d21f300f06d56a46e96d1e594522ab0ac362f074
https://github.com/llvm/llvm-project/commit/d21f300f06d56a46e96d1e594522ab0ac362f074
Author: Min-Yih Hsu <min.hsu at sifive.com>
Date: 2024-12-26 (Thu, 26 Dec 2024)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
Log Message:
-----------
[MIPatternMatch] Fix incorrect argument type of m_Type (#121074)
m_Type is supposed to extract the underlying value type (equality type
comparison is covered by m_SpecificType), therefore it should take a LLT
reference as its argument rather than passing by value.
This was originated from de256478e61d6488db751689af82d280ba114a6f, which
refactored out a good chunk of LLT reference usages. And it's just so
happen that (for some reasons) no one is using m_Type and no test was
covering it.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list