diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-11 06:26:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-11 06:26:33 +0000 |
commit | 8c5ad3a5da7419af4d31963c3824836b5da52478 (patch) | |
tree | 49d26c55a8eed6bffd9233c7edd0b802a639ddc7 /include/llvm/Support/SourceMgr.h | |
parent | 2e1cdbf92dfee11fd326cede500a8a0e7e035e65 (diff) |
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 'include/llvm/Support/SourceMgr.h')
0 files changed, 0 insertions, 0 deletions