1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test
Alexander Potapenko 3544b0e869 [MSan] run materializeChecks() before materializeStores()
When pointer checking is enabled, it's important that every pointer is
checked before its value is used.
For stores MSan used to generate code that calculates shadow/origin
addresses from a pointer before checking it.
For userspace this isn't a problem, because the shadow calculation code
is quite simple and compiler is able to move it after the check on -O2.
But for KMSAN getShadowOriginPtr() creates a runtime call, so we want the
check to be performed strictly before that call.

Swapping materializeChecks() and materializeStores() resolves the issue:
both functions insert code before the given IR location, so the new
insertion order guarantees that the code calculating shadow address is
between the address check and the memory access.

llvm-svn: 337571
2018-07-20 16:28:49 +00:00
..
Analysis [SCEV] Fix buggy behavior in getAddExpr with truncs 2018-07-19 01:46:21 +00:00
Assembler [ThinLTO] Only emit referenced type id records in index files 2018-07-19 22:25:56 +00:00
Bindings
Bitcode
BugPoint
CodeGen [X86][SSE] Use SplitOpsAndApply to improve HADD/HSUB lowering 2018-07-20 16:20:45 +00:00
DebugInfo [DebugInfo] Generate .debug_names section when it makes sense 2018-07-20 12:59:05 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [MSan] run materializeChecks() before materializeStores() 2018-07-20 16:28:49 +00:00
Integer
JitListener
Linker
LTO [LTO] Fix linking with an alias defined using another alias. 2018-07-13 21:58:55 +00:00
MC [AArch64][SVE] Asm: Support for bit/byte reverse operations. 2018-07-20 09:00:44 +00:00
Object
ObjectYAML
Other [ThinLTO] Enable ThinLTO WholeProgramDevirt and LowerTypeTests in new PM 2018-07-19 14:51:32 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86 [ThinLTO] Only emit referenced type id records in index files 2018-07-19 22:25:56 +00:00
tools [llvm-objcopy, tests] Fix several llvm-objcopy tests 2018-07-20 16:19:36 +00:00
Transforms [NFC][testcases] fold sdiv if two operands are negated and non-overflow 2018-07-20 13:38:59 +00:00
Unit
Verifier Recommit r335794 "Add support for generating a call graph profile from Branch Frequency Info." with fix for removed functions. 2018-07-16 00:28:24 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh