1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/lib/Transforms
Sanjay Patel c02483f504 [InstCombine] add folds for icmp (smin X, Y), X
Min/max canonicalization (r287585) exposes the fact that we're missing combines for min/max patterns. 
This patch won't solve the example that was attached to that thread, so something else still needs fixing.

The line between InstCombine and InstSimplify gets blurry here because sometimes the icmp instruction that
we want to fold to already exists, but sometimes it's the swapped form of what we want.

Corresponding changes for smax/umin/umax to follow.

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

llvm-svn: 289855
2016-12-15 19:13:37 +00:00
..
Coroutines Fix spelling mistakes in Transforms comments. NFC. 2016-11-20 13:19:49 +00:00
Hello
InstCombine [InstCombine] add folds for icmp (smin X, Y), X 2016-12-15 19:13:37 +00:00
Instrumentation [asan] Don't skip instrumentation of masked load/store unless we've seen a full load/store on that pointer. 2016-12-14 21:57:04 +00:00
IPO [ThinLTO] Ensure callees get hot threshold when first seen on cold path 2016-12-15 18:21:01 +00:00
ObjCARC [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
Scalar Remove the AssumptionCache 2016-12-15 03:02:15 +00:00
Utils Revert "[SimplifyCFG] In sinkLastInstruction correctly set debugloc of common inst" 2016-12-15 16:59:13 +00:00
Vectorize Remove the AssumptionCache 2016-12-15 03:02:15 +00:00
CMakeLists.txt
LLVMBuild.txt