Commit 38b7176
committed
Revert "R600: Remove softPromoteHalfType (llvm#177420)"
This reverts commit 99fab01.
llc was crashing in kernel-args.ll after this patch:
```
.---command stderr------------
| LLVM ERROR: Cannot select: t3: f32,ch = load<(non-temporal dereferenceable invariant load (s16), align 4, addrspace 7), sext from f16> t0, Constant:i32<36>, undef:i32
| In function: f16_arg
| PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
| Stack dump:
| 0. Program arguments: /b/ml-opt-devrel-x86-64-b1/build/bin/llc -mtriple=r600 -mcpu=redwood
| 1. Running pass 'Function Pass Manager' on module '<stdin>'.
| 2. Running pass 'Unnamed pass: implement Pass::getPassName()' on function '@f16_arg'
| #0 0x0000561402607438 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x81a7438)
| #1 0x0000561402604b75 llvm::sys::RunSignalHandlers() (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x81a4b75)
| #2 0x00005614026081b1 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
| #3 0x00007f55eb45a050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
| #4 0x00007f55eb4a8eec (/lib/x86_64-linux-gnu/libc.so.6+0x8aeec)
| #5 0x00007f55eb459fb2 raise (/lib/x86_64-linux-gnu/libc.so.6+0x3bfb2)
| #6 0x00007f55eb444472 abort (/lib/x86_64-linux-gnu/libc.so.6+0x26472)
| #7 0x0000561402567005 llvm::report_fatal_error(llvm::Twine const&, bool) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x8107005)
| #8 0x00005614023e7ba7 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f87ba7)
| #9 0x00005614023e6a7d llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f86a7d)
| #10 0x00005614023dae94 llvm::SelectionDAGISel::DoInstructionSelection() (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f7ae94)
| #11 0x00005614023d9e6a llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f79e6a)
| #12 0x00005614023d7b5e llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f77b5e)
| #13 0x00005614023d4c30 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f74c30)
| #14 0x00005614023d22e0 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7f722e0)
| #15 0x0000561401611793 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x71b1793)
| #16 0x0000561401b790e5 llvm::FPPassManager::runOnFunction(llvm::Function&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x77190e5)
| #17 0x0000561401b80f72 llvm::FPPassManager::runOnModule(llvm::Module&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7720f72)
| #18 0x0000561401b79b56 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x7719b56)
| #19 0x00005613ff4858f4 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) llc.cpp:0:0
| #20 0x00005613ff482ed3 main (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x5022ed3)
| #21 0x00007f55eb44524a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
| #22 0x00007f55eb445305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
| #23 0x00005613ff47ea21 _start (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x501ea21)
`-----------------------------
```1 parent 2c9efd0 commit 38b7176
File tree
2 files changed
+0
-167
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
2 files changed
+0
-167
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
1486 | 1483 | | |
1487 | 1484 | | |
1488 | 1485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6187 | 6187 | | |
6188 | 6188 | | |
6189 | 6189 | | |
6190 | | - | |
6191 | | - | |
6192 | | - | |
6193 | | - | |
6194 | | - | |
6195 | | - | |
6196 | | - | |
6197 | | - | |
6198 | | - | |
6199 | | - | |
6200 | | - | |
6201 | | - | |
6202 | | - | |
6203 | | - | |
6204 | | - | |
6205 | | - | |
6206 | | - | |
6207 | | - | |
6208 | | - | |
6209 | | - | |
6210 | | - | |
6211 | | - | |
6212 | | - | |
6213 | | - | |
6214 | | - | |
6215 | | - | |
6216 | | - | |
6217 | | - | |
6218 | | - | |
6219 | | - | |
6220 | | - | |
6221 | | - | |
6222 | | - | |
6223 | | - | |
6224 | | - | |
6225 | | - | |
6226 | | - | |
6227 | | - | |
6228 | | - | |
6229 | | - | |
6230 | | - | |
6231 | | - | |
6232 | | - | |
6233 | | - | |
6234 | | - | |
6235 | | - | |
6236 | | - | |
6237 | | - | |
6238 | | - | |
6239 | | - | |
6240 | | - | |
6241 | | - | |
6242 | | - | |
6243 | | - | |
6244 | | - | |
6245 | | - | |
6246 | | - | |
6247 | | - | |
6248 | | - | |
6249 | | - | |
6250 | | - | |
6251 | | - | |
6252 | | - | |
6253 | | - | |
6254 | | - | |
6255 | | - | |
6256 | | - | |
6257 | | - | |
6258 | | - | |
6259 | | - | |
6260 | | - | |
6261 | | - | |
6262 | | - | |
6263 | | - | |
6264 | | - | |
6265 | | - | |
6266 | | - | |
6267 | | - | |
6268 | | - | |
6269 | | - | |
6270 | | - | |
6271 | | - | |
6272 | | - | |
6273 | | - | |
6274 | | - | |
6275 | | - | |
6276 | | - | |
6277 | | - | |
6278 | | - | |
6279 | | - | |
6280 | | - | |
6281 | | - | |
6282 | | - | |
6283 | | - | |
6284 | | - | |
6285 | | - | |
6286 | | - | |
6287 | | - | |
6288 | | - | |
6289 | | - | |
6290 | | - | |
6291 | | - | |
6292 | | - | |
6293 | | - | |
6294 | | - | |
6295 | | - | |
6296 | | - | |
6297 | | - | |
6298 | | - | |
6299 | | - | |
6300 | | - | |
6301 | | - | |
6302 | | - | |
6303 | | - | |
6304 | | - | |
6305 | | - | |
6306 | | - | |
6307 | | - | |
6308 | | - | |
6309 | | - | |
6310 | | - | |
6311 | | - | |
6312 | | - | |
6313 | | - | |
6314 | | - | |
6315 | | - | |
6316 | | - | |
6317 | | - | |
6318 | | - | |
6319 | | - | |
6320 | | - | |
6321 | | - | |
6322 | | - | |
6323 | | - | |
6324 | | - | |
6325 | | - | |
6326 | | - | |
6327 | | - | |
6328 | | - | |
6329 | | - | |
6330 | | - | |
6331 | | - | |
6332 | | - | |
6333 | | - | |
6334 | | - | |
6335 | | - | |
6336 | | - | |
6337 | | - | |
6338 | | - | |
6339 | | - | |
6340 | | - | |
6341 | | - | |
6342 | | - | |
6343 | | - | |
6344 | | - | |
6345 | | - | |
6346 | | - | |
6347 | | - | |
6348 | | - | |
6349 | | - | |
6350 | | - | |
6351 | | - | |
6352 | | - | |
6353 | | - | |
0 commit comments