summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-11 06:26:33 +0000
committerChris Lattner <sabre@nondot.org>2010-02-11 06:26:33 +0000
commit8c5ad3a5da7419af4d31963c3824836b5da52478 (patch)
tree49d26c55a8eed6bffd9233c7edd0b802a639ddc7 /lib/Bitcode/Writer/BitcodeWriter.cpp
parent2e1cdbf92dfee11fd326cede500a8a0e7e035e65 (diff)
downloadllvm-8c5ad3a5da7419af4d31963c3824836b5da52478.tar.gz
llvm-8c5ad3a5da7419af4d31963c3824836b5da52478.tar.bz2
llvm-8c5ad3a5da7419af4d31963c3824836b5da52478.tar.xz
Rename ValueRequiresCast to ShouldOptimizeCast, to better reflect
what it does. Enhance it to return false to optimizing vector sign extensions from vector comparisions, which is the idiom used to get a splatted vector for a vector comparison. Doing this breaks vector-casts.ll, add some compensating transformations to handle the important case they cover without depending on this canonicalization. This fixes rdar://7434900 a serious pessimization of vector compares. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions