Commit 68ce637
authored
[mlir][Transforms][NFC] Dialect Conversion: Replace after legalizing constants (llvm#134384)
When folding an op during a conversion, first try to legalize all
generated constants, then replace the original operation. This is
slightly more efficient because fewer rewrites must be rolled back in
case a generated constant could not be legalized.
Note: This is in preparation of the One-Shot Dialect Conversion
refactoring.1 parent 475cbf0 commit 68ce637
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2109 | 2109 | | |
2110 | 2110 | | |
2111 | 2111 | | |
2112 | | - | |
2113 | | - | |
2114 | | - | |
2115 | 2112 | | |
2116 | 2113 | | |
2117 | 2114 | | |
| |||
2128 | 2125 | | |
2129 | 2126 | | |
2130 | 2127 | | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2131 | 2131 | | |
2132 | 2132 | | |
2133 | 2133 | | |
| |||
0 commit comments