houngkoungting wrote: HI @RKSimon , Thank you for pointing that out! I've removed the unnecessary SDPatternMatch:: namespace and replaced the custom matcher with m_Node(...) . Please help take another look when you have time. https://github.com/llvm/llvm-project/pull/149646