OSDN Git Service

[Reassociate] Try to bail out early when canonicalizing.
authorDavide Italiano <davide@freebsd.org>
Mon, 7 Aug 2017 01:49:09 +0000 (01:49 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 7 Aug 2017 01:49:09 +0000 (01:49 +0000)
commit02e5755a7d6774fa5a2a65ff1c9deb63212b5a50
tree01a9fd9fd81bb1d768be5c36bcbfefbab402cc76
parent694731848f0d04a180b1e455570c792b2f0e7590
[Reassociate] Try to bail out early when canonicalizing.

This commit rearranges the checks to avoid calls to getRank()
when not needed (e.g. when RHS == LHS).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310237 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp