]> granicus.if.org Git - llvm/commit
[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)
commite2ab18968edeecc9ec09bf97585e349f7f945b0a
treef12c3f111ec75196d456d3011a28a833536b3424
parent4e6f8d0728baf31b08aaea7da4148132a6a553f0
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304022 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp