1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/lib/Transforms/Coroutines
Gor Nishanov 9d9aedd0f7 [coroutines] PR33271: Remove stray coro.save intrinsics during CoroSplit
Summary:
Optimization passes may remove llvm.coro.suspend intrinsic while leaving matching llvm.coro.save intrinsic orphaned.
Make sure we clean up orphaned coro.saves.  The bug manifested with a crash similar to this:

```
    llvm_unreachable("Unknown type!");
    llvm::MVT::getVT (Ty=0x489518, HandleUnknown=false)
    llvm::EVT::getEVT
    llvm::TargetLoweringBase::getValueType
    llvm::ComputeValueVTs
    llvm::SelectionDAGBuilder::visitTargetIntrinsic
```

Reviewers: GorNishanov

Subscribers: EricWF, llvm-commits

Differential Revision: https://reviews.llvm.org/D33817

llvm-svn: 304518
2017-06-02 02:18:36 +00:00
..
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
CoroCleanup.cpp [coroutines] Call initializePass in coroutine pass constructors 2017-05-31 03:12:42 +00:00
CoroEarly.cpp [coroutines] Call initializePass in coroutine pass constructors 2017-05-31 03:12:42 +00:00
CoroElide.cpp [coroutines] Call initializePass in coroutine pass constructors 2017-05-31 03:12:42 +00:00
CoroFrame.cpp [coroutines] CoroFrame.cpp conform to coding convention (s/repeat/Repeat) (NFC) 2017-05-25 01:07:10 +00:00
CoroInstr.h [Coroutines] Add header guard to header that's missing one. 2017-01-30 16:32:20 +00:00
CoroInternal.h [Coroutines] Part 10: Add coroutine promise support. 2016-08-31 00:35:41 +00:00
CoroSplit.cpp Reapply "[Cloning] Take another pass at properly cloning debug info" 2017-06-01 23:02:12 +00:00
Coroutines.cpp [coroutines] PR33271: Remove stray coro.save intrinsics during CoroSplit 2017-06-02 02:18:36 +00:00
LLVMBuild.txt