llvm-project/llvm/lib
Paul Kirth 4683a2effa [llvm][misexpect] Avoid division by 0 when using sample profiling
MisExpect diagnostics should not prevent compilation from succeeding, and the
assertion is insufficient to prevent division by zero in release builds.

This patch addresses that by replacing the assert with an early return.

Additionally, it disables MisExpect diagnostics when using sample profiling,
since this is the only known case where this error has manifested.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D124302
2022-04-22 22:48:00 +00:00
..
Analysis [mlgo][nfc] Decouple TensorSpec from tensorflow. 2022-04-21 15:37:01 -07:00
AsmParser [DebugInfo] Add a TargetFuncName field in DISubprogram for 2022-04-15 16:38:23 -04:00
BinaryFormat [CUDA] Add CUDA fatbinary magic 2022-03-14 20:08:31 -04:00
Bitcode [SPIR-V](3/6) Add MC layer, object file support, and InstPrinter 2022-04-20 01:10:25 +02:00
Bitstream [Bitstream] Remove pessimizing move 2022-02-16 08:23:02 +01:00
CodeGen ProcessImplicitDefs: Use required properties instead of isSSA assert 2022-04-22 18:28:45 -04:00
DWARFLinker Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DWP Cleanup LLVMObject headers 2022-02-10 21:13:44 +01:00
DebugInfo [llvm-pdbutil] Fix broken '-modi' option after change D122226. 2022-04-12 06:31:12 +01:00
Debuginfod Fix buildbot failures from 7917b3c6. 2022-03-21 17:58:22 +00:00
Demangle [demangler] Rust demangler buffer return 2022-04-13 08:50:04 -07:00
ExecutionEngine [BOLT] Add R_AARCH64_PREL16/32/64 relocations support 2022-04-21 13:52:47 +03:00
Extensions
FileCheck
Frontend Reapply "[OpenMP] Refactor OMPScheduleType enum." 2022-04-18 21:56:47 -05:00
FuzzMutate Revert "[FuzzMutate] Don't insert instructions after musttail call" 2022-03-16 17:29:27 +01:00
Fuzzer
IR Revert "[asan] Emit .size directive for global object size before redzone" 2022-04-21 16:21:17 -07:00
IRReader
InterfaceStub Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
LTO [iwyu] Handle regressions in libLLVM header include 2022-04-13 20:53:19 +02:00
LineEditor [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
Linker Support the min of module flags when linking, use for AArch64 BTI/PAC-RET 2022-04-13 09:31:51 +02:00
MC [DWARF] Add API to get data from MCDwarfLineStr 2022-04-21 14:08:20 -07:00
MCA [MCA] Removed unused variable. 2022-03-13 21:55:56 -07:00
ObjCopy [ObjCopy][NFC] Refactor handling of linkedit_data_command in MachOWriter 2022-04-10 02:09:11 +00:00
Object [BOLT] Add R_AARCH64_PREL16/32/64 relocations support 2022-04-21 13:52:47 +03:00
ObjectYAML [WebAssembly] Rename member in WasmYAML.h to avoid compiler warning 2022-03-14 09:09:43 -07:00
Option [Driver] Simplify hasFlag pattern with addOptInFlag/addOptOutFlag helpers 2022-04-11 12:29:25 -07:00
Passes [Pipelines] Hoist CoroEarly as a module pass 2022-04-19 11:04:24 +08:00
ProfileData [memprof] Deduplicate and outline frame storage in the memprof profile. 2022-04-08 09:15:20 -07:00
Remarks Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
Support [llvm-objcopy][NFC] refactor restoreStatOnFile out of llvm-objcopy. 2022-04-22 20:06:01 +03:00
TableGen [mlir] Split out AttrDef/TypeDef and pattern constructs from OpBase.td 2022-03-15 00:18:03 -07:00
Target Recommit "[SLP][AArch64] Implement lookahead operand reordering score of splat loads for AArch64" 2022-04-22 15:44:02 -07:00
Testing Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"." 2022-03-04 13:45:43 -08:00
TextAPI Cleanup LLVMTextAPI headers 2022-01-26 14:21:25 +01:00
ToolDrivers [llvm-lib] Add /WX, warn by default on empty inputs, add opt-out 2022-04-11 13:15:30 -04:00
Transforms [llvm][misexpect] Avoid division by 0 when using sample profiling 2022-04-22 22:48:00 +00:00
WindowsDriver Cleanup includes: WindowsDriver & WindowsManifest 2022-03-10 17:19:06 +01:00
WindowsManifest Cleanup includes: WindowsDriver & WindowsManifest 2022-03-10 17:19:06 +01:00
XRay [llvm] Use = default (NFC) 2022-02-06 22:18:35 -08:00
CMakeLists.txt [llvm-objcopy][NFC] Move core implementation of llvm-objcopy into separate library. 2022-02-17 13:11:42 +03:00