Commit b6e889d
authored
Prefer @llvm.ceil.* intrinsics (#8897)
llvm/llvm-project#171288 removed the SDAG
lowering for ceil/ceilf calls. This was causing some errors for us when
using webassembly:
Internal Error at third_party/halide/halide/src/WasmExecutor.cpp:2368 Condition failed: instance: Error initializing module: invalid import "env.ceilf"
Explicitly using the intrinsics is still covered by webassembly and
given the commenting out of these intrinsics mentions that they were not
used due to needing to support LLVM <3.3, I think we can safely enable
these now.1 parent 52ec2d3 commit b6e889d
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 104 | + | |
| 105 | + | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
112 | | - | |
| 109 | + | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
117 | | - | |
| 114 | + | |
118 | 115 | | |
119 | 116 | | |
120 | 117 | | |
| |||
0 commit comments