diff options
author | Matthias Springer <me@m-sp.org> | 2025-04-19 10:01:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-19 10:01:50 +0200 |
commit | c47042c5b3f5e87761715a9277712721512cd48d (patch) | |
tree | a7a1e99af2fd4f40e56d677a44b06a4df2041a07 /llvm/lib/Bitcode | |
parent | 90de46c51b52226f41354da6d6c488500632f566 (diff) | |
download | llvm-c47042c5b3f5e87761715a9277712721512cd48d.zip llvm-c47042c5b3f5e87761715a9277712721512cd48d.tar.gz llvm-c47042c5b3f5e87761715a9277712721512cd48d.tar.bz2 |
[mlir][SPRIV][NFC] Avoid rollback in `TypeCastingOpPattern` (#136284)
This pattern used to create an op and then attached the converted
rounding mode attribute. When the latter failed, the pattern aborted and
a rollback was triggered.
This commit inverses the logic: the converted rounding mode is computed
first, so that no changes have to be rolled back.
Note: This is in preparation of the One-Shot Dialect Conversion
refactoring.
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions