[InstSimplify] Use commutable matchers to shorten some code
authorCraig Topper <craig.topper@gmail.com>
Fri, 26 May 2017 19:03:59 +0000 (19:03 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 26 May 2017 19:03:59 +0000 (19:03 +0000)
commitc8bebb1e84038e3c4131ab702a083891cfd1599d
tree3eb83479aa1bdb453e457c6a628c396220add4af
parent1da22c3244273471bdc14247de36e55cde40b08c
[InstSimplify] Use commutable matchers to shorten some code

This code was replicated two additional times to handle commuted cases, but I think a commutable matcher can take care of it.

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

llvm-svn: 304022
llvm/lib/Analysis/InstructionSimplify.cpp