[InstSimplify] tests for D48828: fold extraction from std::pair
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Fri, 27 Jul 2018 07:21:02 +0000 (07:21 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Fri, 27 Jul 2018 07:21:02 +0000 (07:21 +0000)
commiteeab694cea440fde55e11cdb07a84cdecf561c52
tree899134446cdd97c483ab1a80d73da184f6ea07ab
parent03948d0e0f2954fb93de7fdc4d5c30f90fdd684f
[InstSimplify] tests for D48828: fold extraction from std::pair

This commit includes unit tests for D48828, which enhances InstSimplify to enable jump threading with a method whose return type is std::pair<int, bool> or std::pair<bool, int>.
I am going to commit the actual transformation later.

llvm-svn: 338107
llvm/test/Transforms/InstSimplify/AndOrXor.ll
llvm/test/Transforms/InstSimplify/shift.ll
llvm/test/Transforms/NewGVN/pair_jumpthread.ll [new file with mode: 0644]