Add fast paths to ScalarEvolution::getSizeOf and getOffsetOf, as
authorDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 23:03:26 +0000 (23:03 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 23:03:26 +0000 (23:03 +0000)
commit6ab10f69a9804c1915202992e4afebea63604535
tree8305e687a8f62d7ff8f14f59c2648a54a5f75294
parent8cc21cac89af5988e8f61b2ecb8597c7f1482561
Add fast paths to ScalarEvolution::getSizeOf and getOffsetOf, as
they're used a lot by getNodeForGEP, which can be called a lot.
This speeds up -iv-users by around 15% on several testcases.

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