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 | 4e8137d678c7291a33aad41b2b89784c2a69db06 (patch) | |
tree | 416ab12c0ed429854538130b5b8318933d6281ca /clang/tools/c-index-test/c-index-test.c | |
parent | 1d4eb8fac4b82cafd82719e4fecb6e86753464ed (diff) | |
download | bcm5719-llvm-4e8137d678c7291a33aad41b2b89784c2a69db06.tar.gz bcm5719-llvm-4e8137d678c7291a33aad41b2b89784c2a69db06.zip |
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.
llvm-svn: 95855
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions