aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/AssumptionCache.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-09-01 19:54:08 +0000
committerDavide Italiano <davide@freebsd.org>2017-09-01 19:54:08 +0000
commitc36039f462a8270a69b64309810f537e4991bb1c (patch)
treea48c0440847af7b7821248443c4dbc30263eda25 /llvm/lib/Analysis/AssumptionCache.cpp
parent07490f8415e1570be554b5858bf16469a77153cb (diff)
downloadllvm-c36039f462a8270a69b64309810f537e4991bb1c.zip
llvm-c36039f462a8270a69b64309810f537e4991bb1c.tar.gz
llvm-c36039f462a8270a69b64309810f537e4991bb1c.tar.bz2
[TTI] Fix getGEPCost() for geps with a single operand.
Previously this would sporadically crash as TargetType was never initialized. We special-case the single-operand case returning earlier and trying to mimic the behaviour of isLegalAddressingMode as closely as possible. Differential Revision: https://reviews.llvm.org/D37277 llvm-svn: 312357
Diffstat (limited to 'llvm/lib/Analysis/AssumptionCache.cpp')
0 files changed, 0 insertions, 0 deletions