aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitReader.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
commit5e73ff2e3a34a76ddd66b6b7439c77e43e3a0658 (patch)
tree38909fb4680244239d385faab15d40ea25ee8098 /llvm/lib/Bitcode/Reader/BitReader.cpp
parent5f5cbf5d1d3e1d533743945207dfaa2c0c2e2191 (diff)
downloadllvm-5e73ff2e3a34a76ddd66b6b7439c77e43e3a0658.zip
llvm-5e73ff2e3a34a76ddd66b6b7439c77e43e3a0658.tar.gz
llvm-5e73ff2e3a34a76ddd66b6b7439c77e43e3a0658.tar.bz2
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. llvm-svn: 96255
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions