llvm-6502/test
Sanjoy Das a0a0b40aa3 Bugfix: SCEVExpander incorrectly marks increment operations as no-wrap
(The change was landed in r230280 and caused the regression PR22674.
This version contains a fix and a test-case for PR22674).
    
When emitting the increment operation, SCEVExpander marks the
operation as nuw or nsw based on the flags on the preincrement SCEV.
This is incorrect because, for instance, it is possible that {-6,+,1}
is <nuw> while {-6,+,1}+1 = {-5,+,1} is not.
    
This change teaches SCEV to mark the increment as nuw/nsw only if it
can explicitly prove that the increment operation won't overflow.
    
Apart from the attached test case, another (more realistic)
manifestation of the bug can be seen in
Transforms/IndVarSimplify/pr20680.ll.

Differential Revision: http://reviews.llvm.org/D7778



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230533 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-25 20:02:59 +00:00
..
Analysis Bugfix: SCEVExpander incorrectly marks increment operations as no-wrap 2015-02-25 20:02:59 +00:00
Assembler llvm-dis: Stop crashing when dropping debug info 2015-02-25 01:10:03 +00:00
Bindings
Bitcode llvm-dis: Stop crashing when dropping debug info 2015-02-25 01:10:03 +00:00
BugPoint
CodeGen Bugfix: SCEVExpander incorrectly marks increment operations as no-wrap 2015-02-25 20:02:59 +00:00
DebugInfo [llvm-pdbdump] Add an option to dump full class definitions. 2015-02-23 05:58:34 +00:00
ExecutionEngine
Feature
FileCheck
Instrumentation InstrProf: Test for appropriate linkage of the profiling structures 2015-02-24 21:42:42 +00:00
Integer
JitListener
Linker
LTO [LTO API] add lto_codegen_set_module to set the destination module. 2015-02-24 00:45:56 +00:00
MC [MIPS]Multiple and add instructions for Mips are currently available in mips32r2/mips64r2 and later but should also be available in mips4, mips5, and mips64. This patch fixes the requested features and updates the corresponding test files. 2015-02-25 15:24:37 +00:00
Object [obj2yaml/yaml2obj] Add SHT_GROUP support. 2015-02-21 04:28:26 +00:00
Other
SymbolRewriter
TableGen
tools InstrProf: Teach llvm-cov to show the max count instead of the last 2015-02-23 21:21:34 +00:00
Transforms Bugfix: SCEVExpander incorrectly marks increment operations as no-wrap 2015-02-25 20:02:59 +00:00
Unit
Verifier Verifier: Unused comdats might not have a corresponding GV 2015-02-20 19:58:48 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in Remove log statements from config scripts. 2015-02-22 07:31:42 +00:00
Makefile Attempt to fix the builders. 2015-02-22 07:01:41 +00:00
Makefile.tests
TestRunner.sh