1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib
Benjamin Kramer 5b50192eda Assert correct removal of SUnit in LatencyPriorityQueue
The LatencyPriorityQueue doesn't currently check whether the SU being removed really exists in the Queue.
This method fails quietly when SU is not found and removes the last element from the Queue, leading to unexpected behavior.

Unfortunately, this only occurs on our custom target, with the custom scheduler. In our case, when remove() is invoked, it removes the wrong SU at the end of the Queue, which is only discovered later when VerifyScheduledDAG() is invoked and finds that some nodes were not scheduled at all.

As this is only reproducible with a lot of proprietary code, I'm hopeful this assert is straightforward enough to not necessitate a test.

Patch by Ondrej Glasnak!

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

llvm-svn: 318387
2017-11-16 10:18:07 +00:00
..
Analysis [SCEV][NFC] Introduce isSafeToExpandAt function to SCEVExpander 2017-11-16 05:10:56 +00:00
AsmParser [IR] redefine 'UnsafeAlgebra' / 'reassoc' fast-math-flags and add 'trans' fast-math-flag 2017-11-06 16:27:15 +00:00
BinaryFormat Simplify. 2017-10-19 01:32:18 +00:00
Bitcode [WebAssembly] Explicily disable comdat support for wasm output 2017-11-14 00:49:16 +00:00
CodeGen Assert correct removal of SUnit in LatencyPriorityQueue 2017-11-16 10:18:07 +00:00
DebugInfo Convert FileOutputBuffer to Expected. NFC. 2017-11-08 01:05:44 +00:00
Demangle
ExecutionEngine Fix 'not all control paths return a value' warning on MSVC builds 2017-11-09 14:56:17 +00:00
Fuzzer
FuzzMutate [llvm-opt-fuzzer] Introduce llvm-opt-fuzzer for fuzzing optimization passes 2017-11-10 12:19:08 +00:00
IR Fix -Werror when compiling rL318083 (ter) 2017-11-13 21:55:01 +00:00
IRReader
LineEditor
Linker
LTO LTO: clarify why we need to gracefully handle sys::fs::rename failures 2017-11-16 01:16:52 +00:00
MC NFC: Rename MCSafeSEHFragment to MCSymbolIdFragment 2017-11-08 18:57:02 +00:00
Object Use TempFile in llvm-ar. NFC. 2017-11-14 01:21:15 +00:00
ObjectYAML Reapply: Allow yaml2obj to order implicit sections for ELF 2017-11-09 14:53:43 +00:00
Option
Passes [(new) Pass Manager] instantiate SimplifyCFG with the same options as the old PM 2017-11-15 16:33:11 +00:00
ProfileData [Coverage] Use the wrapped segment when a line has entry segments 2017-11-09 02:33:43 +00:00
Support [globalisel][tablegen] Generate rule coverage and use it to identify untested rules 2017-11-16 00:46:35 +00:00
TableGen [globalisel][regbank] Warn about MIR ambiguities when register bank/class names clash. 2017-11-01 22:13:05 +00:00
Target [TTI][X86] update costs of interleaved load\store of i64\double 2017-11-16 09:38:32 +00:00
Testing Force #define GTEST_LANG_CXX11. 2017-10-27 21:12:28 +00:00
ToolDrivers [COFF] Improve the check for functions that should get an extra underscore 2017-10-23 09:08:13 +00:00
Transforms [IRCE] Fix SCEVExpander's usage in IRCE 2017-11-16 06:06:27 +00:00
WindowsManifest
XRay [XRay] Stable sort XRayRecord to remove non-deterministic ordering 2017-11-14 18:11:08 +00:00
CMakeLists.txt
LLVMBuild.txt