llvm/lib
David Majnemer a4a812fedd InstCombine: Correctly propagate NSW/NUW for x-(-A) -> x+A
We can only propagate the nsw bits if both subtraction instructions are
marked with the appropriate bit.

N.B.  We only propagate the nsw bit in InstCombine because the nuw case
is already handled in InstSimplify.

This fixes PR20189.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214385 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-31 04:49:29 +00:00
..
Analysis InstSimplify: Simplify (X - (0 - Y)) if the second sub is NUW 2014-07-31 04:49:18 +00:00
AsmParser Use "weak alias" instead of "alias weak" 2014-07-30 22:51:54 +00:00
Bitcode UseListOrder: Don't give constant IDs to GlobalValues 2014-07-31 00:13:28 +00:00
CodeGen [FastISel] Fix the patchpoint intrinsic lowering in FastISel for large target addresses. 2014-07-31 00:11:16 +00:00
DebugInfo Use std::unique_ptr to make the ownership explicit. 2014-07-31 03:12:45 +00:00
ExecutionEngine Use std::unique_ptr to make the ownership explicit. 2014-07-31 03:12:45 +00:00
IR Use "weak alias" instead of "alias weak" 2014-07-30 22:51:54 +00:00
IRReader
LineEditor
Linker
LTO Attempt at fixing the windows dll build. 2014-07-30 23:39:30 +00:00
MC Reapply "DebugInfo: Don't put fission type units in comdat sections." 2014-07-25 17:11:58 +00:00
Object A std::unique_ptr case I missed in the previous patch. 2014-07-31 03:36:00 +00:00
Option
ProfileData Use std::unique_ptr to make the ownership explicit. 2014-07-31 03:12:45 +00:00
Support Remove dead code. 2014-07-25 19:06:39 +00:00
TableGen Don't fail tablegen immediately after failing to set a value. 2014-07-31 01:44:00 +00:00
Target [FastISel][AArch64] Add MachO large code model support for function calls. 2014-07-31 04:10:40 +00:00
Transforms InstCombine: Correctly propagate NSW/NUW for x-(-A) -> x+A 2014-07-31 04:49:29 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile