Commit 3b82d8e
committed
[mlir][SPRIV][NFC] Avoid rollback in
This pattern used to create an op and then attached the converted rounding mode attribute. When the latter failed, 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.TypeCastingOpPattern
1 parent a99c978 commit 3b82d8e
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
851 | | - | |
| 850 | + | |
| 851 | + | |
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
| 856 | + | |
| 857 | + | |
862 | 858 | | |
863 | 859 | | |
864 | 860 | | |
865 | 861 | | |
866 | 862 | | |
867 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
868 | 872 | | |
869 | 873 | | |
870 | 874 | | |
| |||
0 commit comments