1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test
Peter Collingbourne b6e7ff238c Prevent Constant Folding From Optimizing inrange GEP
This patch does the following things:

1. update SymbolicallyEvaluateGEP so that it bails out if it cannot preserve inrange arribute;
2. update llvm/test/Analysis/ConstantFolding/gep.ll to remove UB in it;
3. remove inaccurate comment above ConstantFoldInstOperandsImpl in llvm/lib/Analysis/ConstantFolding.cpp;
4. add a new regression test that makes sure that no optimizations change an inrange GEP in an unexpected way.

Patch by Zhaomo Yang!

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

llvm-svn: 341888
2018-09-11 01:53:36 +00:00
..
Analysis Prevent Constant Folding From Optimizing inrange GEP 2018-09-11 01:53:36 +00:00
Assembler [MC, RISCV] Fixed StringRef Assertion `Index < Length && "Invalid index!"' 2018-08-25 01:34:32 +00:00
Bindings [LLVM-C] Add Bindings For Named Metadata 2018-08-30 17:09:43 +00:00
Bitcode Allow creating llvm::Function in non-zero address spaces 2018-08-23 09:25:17 +00:00
BugPoint
CodeGen [X89] Explicitly enable aes in aes-schedule.ll to fix failures after r341861. 2018-09-10 21:49:01 +00:00
DebugInfo AMDGPU: Fix tests using old number for constant address space 2018-09-10 02:54:25 +00:00
Demangle [MS Demangler] Add support for $$Z parameter pack separator. 2018-08-30 20:53:29 +00:00
Examples
ExecutionEngine [ORC] Add a testcase for r338975. 2018-08-28 22:50:59 +00:00
Feature
FileCheck
Instrumentation [MSan] Add KMSAN instrumentation to MSan pass 2018-09-07 09:10:30 +00:00
Integer
JitListener
Linker
LTO
MC [WebAssembly] v8x16.shuffle 2018-09-07 21:54:46 +00:00
Object
ObjectYAML
Other Prevent Constant Folding From Optimizing inrange GEP 2018-09-11 01:53:36 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86 [X86] Make Feature64Bit useful 2018-08-30 06:01:05 +00:00
tools [XRay] Add the llvm-xray fdr-dump implementation 2018-09-11 00:22:53 +00:00
Transforms [InstCombine] Add testcases for (mul (sext x), cst) --> (sext (mul x, cst')) and (mul (zext x), cst) --> (zext (mul x, cst')) for vectors constants. 2018-09-10 23:48:21 +00:00
Unit
Verifier Remove addBlockByrefAddress(), it is dead code as far as clang is concerned. 2018-09-08 00:21:55 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in Import lit.llvm after rL341135 2018-08-31 00:22:20 +00:00
TestRunner.sh