diff options
author | Ehsan Amiri <amehsan@ca.ibm.com> | 2016-08-12 16:05:03 +0000 |
---|---|---|
committer | Ehsan Amiri <amehsan@ca.ibm.com> | 2016-08-12 16:05:03 +0000 |
commit | 17e17010758aa06f03e878b0ee1f72f60e08575e (patch) | |
tree | 74516fa5501fe4634f71726dee61574eda3ba84d /llvm/lib/Transforms/Utils/Utils.cpp | |
parent | 2e8f82d962fb0d45c73ef9f32473f579030793db (diff) | |
download | llvm-17e17010758aa06f03e878b0ee1f72f60e08575e.zip llvm-17e17010758aa06f03e878b0ee1f72f60e08575e.tar.gz llvm-17e17010758aa06f03e878b0ee1f72f60e08575e.tar.bz2 |
[BasicAA] Avoid calling GetUnderlyingObject, when the result of a previous call can be reused.
Recursive calls to aliasCheck from alias[GEP|Select|PHI] may result in a second call to GetUnderlyingObject for a Value, whose underlying object is already computed. This patch ensures that in this situations, the underlying object is not computed again, and the result of the previous call is resued.
https://reviews.llvm.org/D22305
llvm-svn: 278519
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions