[InstCombine] InstCombine and InstSimplify for minimum and maximum
authorThomas Lively <tlively@google.com>
Fri, 19 Oct 2018 19:01:26 +0000 (19:01 +0000)
committerThomas Lively <tlively@google.com>
Fri, 19 Oct 2018 19:01:26 +0000 (19:01 +0000)
commitc339250e122a3d5e6148f994d7f69eae95c31aa6
treeb8883babc81ed815b7dad1f976a198aeb0f3b47f
parentc3d447fe26f9bf742625f70feadd102c1eed0d99
[InstCombine] InstCombine and InstSimplify for minimum and maximum

Summary: Depends on D52765

Reviewers: aheejin, dschuff

Subscribers: llvm-commits

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

llvm-svn: 344799
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/maximum.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/minimum.ll [new file with mode: 0644]
llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
llvm/test/Transforms/InstSimplify/floating-point-compare.ll
llvm/test/Transforms/LICM/hoist-round.ll
llvm/test/Transforms/SimplifyCFG/speculate-math.ll