jayfoad wrote: This also affects `PatLeaf` (and `ImmLeaf`) right, since they are types of `PatFrag`? So could you also update `is_canonicalized` in `lib/Target/AMDGPU/SIInstrInfo.td`. https://github.com/llvm/llvm-project/pull/137519