aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-09-30 12:07:19 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-09-30 12:07:19 +0100
commitaf47d40b9c68744eb66aa2ef779065e946aaa099 (patch)
treeb4e590c6c2df255e21fb2e0c195dfb81a17775f8 /clang/lib/Frontend/CompilerInvocation.cpp
parentec3f24d4538d1c262377331c7b35ea66e023cf98 (diff)
downloadllvm-af47d40b9c68744eb66aa2ef779065e946aaa099.zip
llvm-af47d40b9c68744eb66aa2ef779065e946aaa099.tar.gz
llvm-af47d40b9c68744eb66aa2ef779065e946aaa099.tar.bz2
[InstCombine] recognizeBSwapOrBitReverseIdiom - recognise zext(bswap(trunc(x))) patterns (PR39793)
PR39793 demonstrated an issue where we fail to recognize 'partial' bswap patterns of the lower bytes of an integer source. In fact, most of this is already in place collectBitParts suitably tags zero bits, so we just need to correctly handle this case by finding the zero'd upper bits and reducing the bswap pattern just to the active demanded bits. Differential Revision: https://reviews.llvm.org/D88316
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions