[ValueTracking] move helpers for SelectPatterns from InstCombine to ValueTracking
authorSanjay Patel <spatel@rotateright.com>
Tue, 6 Mar 2018 16:57:55 +0000 (16:57 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 6 Mar 2018 16:57:55 +0000 (16:57 +0000)
commit7ed0bc26acebe2d88d3d86d0273bca960f8c5d0f
treefc93c09581a71f15bc30b7940e7f5165bdc20641
parent41073e8046d3fd52c42b2de718bad6b761cbd1ac
[ValueTracking] move helpers for SelectPatterns from InstCombine to ValueTracking

Most of the folds based on SelectPatternResult belong in InstSimplify rather than
InstCombine, so the helper code should be available to other passes/analysis.

llvm-svn: 326812
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp