https://github.com/nikic approved this pull request. LGTM from my side. Non-canonical patterns should only be handled if there is a specific need, in which case there should at minimum be a test case that justifies it, which is not present here. https://github.com/llvm/llvm-project/pull/96763