1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/lib
Hongbin Zheng 29f3927372 [SimplifyIndVar] Constant fold IV users
This patch tries to transform cases like:

for (unsigned i = 0; i < N; i += 2) {
  bool c0 = (i & 0x1) == 0;
  bool c1 = ((i + 1) & 0x1) == 1;
}
To

for (unsigned i = 0; i < N; i += 2) {
  bool c0 = true;
  bool c1 = true;
}

This commit also update test/Transforms/IndVarSimplify/replace-srem-by-urem.ll to prevent constant folding.

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

llvm-svn: 314266
2017-09-27 03:11:46 +00:00
..
Analysis TargetLibraryInfo: Stop guessing wchar_t size 2017-09-26 02:36:57 +00:00
AsmParser IR: Represent -ggnu-pubnames with a flag on the DICompileUnit. 2017-09-12 21:50:41 +00:00
BinaryFormat [BinaryFormat] Fix out of bounds read. 2017-08-31 12:50:42 +00:00
Bitcode [llvm] Fix some typos. NFC. 2017-09-15 20:01:43 +00:00
CodeGen [SelectionDAG] Teach simplifyDemandedBits to handle shifts by constant splat vectors 2017-09-25 19:26:08 +00:00
DebugInfo [dwarfdump] Skip 'stripped' sections 2017-09-26 14:22:35 +00:00
Demangle
ExecutionEngine Revert "Revert "ExecutionEngine: add R_AARCH64_ABS{16,32}"" 2017-09-20 21:32:44 +00:00
Fuzzer
FuzzMutate Move some CLI utils out of llvm-isel-fuzzer and into the library 2017-09-02 23:43:04 +00:00
IR [X86] Finishing broadcastf32x2 and broadcasti32x2 intrinsics lowering to IR. llvm side. 2017-09-26 07:39:39 +00:00
IRReader
LineEditor
Linker
LTO [Support] Rename tool_output_file to ToolOutputFile, NFC 2017-09-23 01:03:17 +00:00
MC [WebAssembly] Model weakly defined symbols as wasm exports 2017-09-26 21:10:09 +00:00
Object [WebAssembly] Model weakly defined symbols as wasm exports 2017-09-26 21:10:09 +00:00
ObjectYAML Reland "[WebAssembly] Add support for naming wasm data segments" 2017-09-20 19:03:35 +00:00
Option Revert "Revert r311552: [Bash-autocompletion] Add support for static analyzer flags" 2017-08-29 00:09:31 +00:00
Passes [DivRempairs] add a pass to optimize div/rem pairs (PR31028) 2017-09-09 13:38:18 +00:00
ProfileData [llvm-cov] Improve error messaging for function mismatches 2017-09-21 01:11:30 +00:00
Support Add section headers to SpecialCaseLists 2017-09-25 22:11:11 +00:00
TableGen [Support] Rename tool_output_file to ToolOutputFile, NFC 2017-09-23 01:03:17 +00:00
Target [AArch64][Falkor] Fix bug in falkor prefetcher fix pass. 2017-09-26 21:40:46 +00:00
Testing
ToolDrivers Convert the archive writer to use Error. 2017-09-21 23:13:36 +00:00
Transforms [SimplifyIndVar] Constant fold IV users 2017-09-27 03:11:46 +00:00
WindowsManifest Fix bug 34608 by moving private header out of public header. 2017-09-14 23:01:13 +00:00
XRay [XRay][tools] Support tail-call exits before we write them in the runtime 2017-09-18 06:08:46 +00:00
CMakeLists.txt
LLVMBuild.txt