1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm
Justin Lebar ae90b4a8da Check for overflows when calculating the offset in GetGEPCost.
Summary:
This avoids C++ UB if the GEP is weird and the calculation overflows
int64_t, and it's also observable in the cost model's results.

Such GEPs are almost surely not valid pointers, but LLVM nonetheless
generates them sometimes.

Reviewers: sanjoy

Subscribers: llvm-commits

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

llvm-svn: 314362
2017-09-27 23:16:56 +00:00
..
ADT [APInt] Use getActiveBits() to implement logBase2 and ceilLogBase2. NFC 2017-09-20 18:49:31 +00:00
Analysis Check for overflows when calculating the offset in GetGEPCost. 2017-09-27 23:16:56 +00:00
AsmParser
BinaryFormat Modernize comments 2017-09-25 22:51:26 +00:00
Bitcode [Bitcode] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-09-07 23:28:24 +00:00
CodeGen Cleanup some problems with LLVM_ENABLE_DUMP in release builds, and 2017-09-27 21:19:56 +00:00
Config Cleanup some problems with LLVM_ENABLE_DUMP in release builds, and 2017-09-27 21:19:56 +00:00
DebugInfo [dwarfdump] Add support for -debug-loc=OFFSET 2017-09-27 09:33:36 +00:00
Demangle
ExecutionEngine [ORC] Kill off a dead typedef. 2017-09-11 01:09:46 +00:00
FuzzMutate Move some CLI utils out of llvm-isel-fuzzer and into the library 2017-09-02 23:43:04 +00:00
IR [NVPTX] added match.{any,all}.sync instructions, intrinsics & builtins. 2017-09-26 17:07:23 +00:00
IRReader
LineEditor
Linker
LTO [Support] Rename tool_output_file to ToolOutputFile, NFC 2017-09-23 01:03:17 +00:00
MC Cleanup some problems with LLVM_ENABLE_DUMP in release builds, and 2017-09-27 21:19:56 +00:00
Object [WebAssembly] Use function/global index space in WasmSymbol 2017-09-26 18:21:12 +00:00
ObjectYAML Reland "[WebAssembly] Add support for naming wasm data segments" 2017-09-20 19:03:35 +00:00
Option
Passes
ProfileData [llvm-cov] Improve error messaging for function mismatches 2017-09-21 01:11:30 +00:00
Support [Support] mapped_file_region: store size as size_t 2017-09-27 15:59:16 +00:00
TableGen Fixing incorrectly capitalised regexps. 2017-09-07 09:54:03 +00:00
Target [MachineOutliner] AArch64: Avoid saving + restoring LR if possible 2017-09-27 20:47:39 +00:00
Testing/Support
ToolDrivers
Transforms Rename LoopUnrollStatus to LoopUnrollResult; NFC 2017-09-27 21:45:19 +00:00
WindowsManifest Fix bug 34608 by moving private header out of public header. 2017-09-14 23:01:13 +00:00
WindowsResource [llvm-readobj] Teach readobj to dump .res files (WindowsResource). 2017-09-20 18:33:35 +00:00
XRay [XRay] convert FDR arg1 log entries 2017-09-27 04:48:03 +00:00
CMakeLists.txt
InitializePasses.h Update branch coalescing to be a PowerPC specific pass 2017-09-12 18:39:11 +00:00
LinkAllIR.h Sink some IntrinsicInst.h and Intrinsics.h out of llvm/include 2017-09-07 23:27:44 +00:00
LinkAllPasses.h
module.modulemap [ARC] Prepare the implementation of relocation for LLD 2017-09-13 01:49:49 +00:00
module.modulemap.build
Pass.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassAnalysisSupport.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassInfo.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassRegistry.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00
PassSupport.h [Pass] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-09-06 23:05:38 +00:00