aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-02-15 19:41:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-02-15 19:41:07 +0000
commitf80681ead6c31677f300779fe356c77e34678396 (patch)
tree6ded73d75a50bf06d3057a79019eea17e1c466b1 /lib/Transforms/Utils/Local.cpp
parentcd219f69047c4772b9db07259745a58d2c3ba53d (diff)
downloadexternal_llvm-f80681ead6c31677f300779fe356c77e34678396.tar.gz
external_llvm-f80681ead6c31677f300779fe356c77e34678396.tar.bz2
external_llvm-f80681ead6c31677f300779fe356c77e34678396.zip
Split SelectionDAGISel::IsLegalAndProfitableToFold to
IsLegalToFold and IsProfitableToFold. The generic version of the later simply checks whether the folding candidate has a single use. This allows the target isel routines more flexibility in deciding whether folding makes sense. The specific case we are interested in is folding constant pool loads with multiple uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions