1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test
Heejin Ahn 1efa2cfaba [WebAssembly] Fix reverse mapping in WasmEHFuncInfo
D97247 added the reverse mapping from unwind destination to their
source, but it had a critical bug; sources can be multiple, because
multiple BBs can have a single BB as their unwind destination.

This changes `WasmEHFuncInfo::getUnwindSrc` to `getUnwindSrcs` and makes
it return a vector rather than a single BB. It does not return the const
reference to the existing vector but creates a new vector because
`WasmEHFuncInfo` stores not `BasicBlock*` or `MachineBasicBlock*` but
`PointerUnion` of them. Also I hoped to unify those methods for
`BasicBlock` and `MachineBasicBlock` into one using templates to reduce
duplication, but failed because various usages require `BasicBlock*` to
be `const` but it's hard to make it `const` for `MachineBasicBlock`
usages.

Fixes https://github.com/emscripten-core/emscripten/issues/13514.
(More precisely, fixes
https://github.com/emscripten-core/emscripten/issues/13514#issuecomment-784708744)

Reviewed By: dschuff, tlively

Differential Revision: https://reviews.llvm.org/D97583
2021-02-26 17:12:10 -08:00
..
Analysis Option to ignore llvm[.compiler].used uses in hasAddressTaken() 2021-02-25 10:06:24 -08:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [WebAssembly] Fix reverse mapping in WasmEHFuncInfo 2021-02-26 17:12:10 -08:00
DebugInfo [debug-info] refactor emitDwarfUnitLength 2021-02-25 21:00:25 -05:00
Demangle
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [InstrProfiling] Use llvm.compiler.used instead of llvm.used for ELF 2021-02-26 16:14:03 -08:00
Integer
JitListener
Linker
LTO
MachineVerifier
MC [MC] Allow .cfi_sections with empty section list 2021-02-25 22:29:49 -08:00
Object
ObjectYAML Add more historic DWARF vendor extensions 2021-02-25 15:09:42 -08:00
Other [Remarks] Provide more information about auto-init calls 2021-02-25 15:14:09 -08:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen
ThinLTO/X86
tools [llvm-dwarfdump] StringMap -> MapVector to make iteration order stable 2021-02-25 20:05:05 -08:00
Transforms [test] Fix PGOProfile/comdat_internal.ll 2021-02-26 16:27:23 -08:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh