diff options
| author | Gil Rapaport <gil.rapaport@mobileye.com> | 2026-01-27 10:12:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-27 10:12:08 +0200 |
| commit | 4a50d99a50ef10da020cc7de6d9f10a07398b25a (patch) | |
| tree | 60d67878cb2ae37b702a88a6ffe5d084bdd05b9a /llvm/test/CodeGen/SPIRV/structurizer | |
| parent | 50e59af2a028b8cb8b5dcc6e307ee03fc39b8d7b (diff) | |
| download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 | |
The pretty-printing for `emitc.expression` breaks for expressions taking
the same value as operand multiple times.
Passing the same value as operand more than once is redundant, and is
therefore not the canonical form of `emitc.expression`. However, since
transformations affecting `emitc.expression` operands may cause this to
happen, `emitc.expression` must retain its support for recurring
operands.
This PR fixes this issue by shadowing the region arguments only when the
operands are unique, printing and parsing an explicit basic block
otherwise. In addition, a canonicalization pattern removing recurring
operands is added.
Fixes https://github.com/llvm/llvm-project/issues/172952.
Diffstat (limited to 'llvm/test/CodeGen/SPIRV/structurizer')
0 files changed, 0 insertions, 0 deletions
