1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test
Craig Topper 875dc8de28 [InstSimplify][ConstantFolding] Teach constant folding how to handle icmp null, (inttoptr x) as well as it handles icmp (inttoptr x), null
Summary:
The constant folding code currently assumes that the constant expression will always be on the left and the simple null will be on the right. But that's not true at least on the path from InstSimplify.

This patch adds support to ConstantFolding to detect the reversed case.

Reviewers: spatel, dberlin, majnemer, davide, joey

Reviewed By: joey

Subscribers: joey, llvm-commits

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

llvm-svn: 304559
2017-06-02 16:17:32 +00:00
..
Analysis [CFLAA] Add missing break; note things are broken. 2017-05-31 02:35:26 +00:00
Assembler
Bindings
Bitcode [ThinLTO] Reduce unnecessary map lookups during combined summary write 2017-05-31 18:58:11 +00:00
BugPoint
CodeGen Update select.ll expected results. NFC 2017-06-02 16:07:43 +00:00
DebugInfo [CodeView] Properly align symbol records on read/write. 2017-06-01 21:52:41 +00:00
Examples
ExecutionEngine
Feature Add constrained intrinsics for some libm-equivalent operations 2017-05-25 21:31:00 +00:00
FileCheck
Instrumentation [sanitizer-coverage] remove stale code (old coverage); llvm part 2017-05-31 18:27:33 +00:00
Integer
JitListener
LibDriver
Linker
LTO PMB: Run the whole-program-devirt pass during LTO at --lto-O0. 2017-05-26 18:27:13 +00:00
MC [WebAssembly] MC: Fix references to undefined externals in data section 2017-06-02 01:05:24 +00:00
Object
ObjectYAML
Other [PM/ThinLTO] Port the ThinLTO pipeline (both components) to the new PM. 2017-06-01 11:39:39 +00:00
SymbolRewriter
TableGen
ThinLTO/X86 [ThinLTO] Move -lto-use-new-pm to llvm-lto2, and change it to -use-new-pm. 2017-06-01 23:13:44 +00:00
tools [ThinLTO] Move -lto-use-new-pm to llvm-lto2, and change it to -use-new-pm. 2017-06-01 23:13:44 +00:00
Transforms [InstSimplify][ConstantFolding] Teach constant folding how to handle icmp null, (inttoptr x) as well as it handles icmp (inttoptr x), null 2017-06-02 16:17:32 +00:00
Unit
Verifier Add constrained intrinsics for some libm-equivalent operations 2017-05-25 21:31:00 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh