Commit 27231bc
authored
[MLIR][SPIRV] Lower SPIR-V Tan/Tanh ops to LLVM intrinsics (llvm#168419)
Fixed llvm#148354
Lower SPIR-V Tan/Tanh ops using the corresponding LLVM intrinsics to
reduce instructions and prevent overflow caused by the previous
`exp`-based expansion.1 parent 2432465 commit 27231bc
File tree
2 files changed
+6
-32
lines changed- mlir
- lib/Conversion/SPIRVToLLVM
- test/Conversion/SPIRVToLLVM
2 files changed
+6
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
| 1523 | + | |
| 1524 | + | |
1527 | 1525 | | |
1528 | 1526 | | |
1529 | 1527 | | |
1530 | 1528 | | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | 1529 | | |
1538 | 1530 | | |
1539 | 1531 | | |
| |||
1546 | 1538 | | |
1547 | 1539 | | |
1548 | 1540 | | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
| 1541 | + | |
| 1542 | + | |
1561 | 1543 | | |
1562 | 1544 | | |
1563 | 1545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 165 | + | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 176 | + | |
185 | 177 | | |
186 | 178 | | |
187 | 179 | | |
| |||
0 commit comments