[ConstantFolding] add simplifications for funnel shift intrinsics
authorSanjay Patel <spatel@rotateright.com>
Fri, 17 Aug 2018 13:23:44 +0000 (13:23 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 17 Aug 2018 13:23:44 +0000 (13:23 +0000)
commit411b86081e131e13ab4981e21e7752405fb9d49a
tree344e8c12ce4f2a71a5600e0ef6d84b68d381fb8a
parentc9818ebc02b9ae0ef5cee50a9fb60a9626c6274e
[ConstantFolding] add simplifications for funnel shift intrinsics

This is another step towards being able to canonicalize to the funnel shift
intrinsics in IR (see D49242 for the initial patch).
We should not have any loss of simplification power in IR between these and
the equivalent IR constructs.

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

llvm-svn: 340022
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Analysis/ConstantFolding/funnel-shift.ll