diff options
author | Craig Topper <craig.topper@intel.com> | 2018-10-16 22:29:36 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-10-16 22:29:36 +0000 |
commit | e0a992918b54c422119fa2b8046cdf8b9b327b38 (patch) | |
tree | 292f9733658f1d37d118f28d90e07fb7b6b38b64 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | af67fe6aef3b7afa148b3d9b1fea172605a153de (diff) | |
download | llvm-e0a992918b54c422119fa2b8046cdf8b9b327b38.zip llvm-e0a992918b54c422119fa2b8046cdf8b9b327b38.tar.gz llvm-e0a992918b54c422119fa2b8046cdf8b9b327b38.tar.bz2 |
[X86] Match (cmp (and (shr X, C), mask), 0) to BEXTR+TEST.
Without this we match the CMP+AND to a TEST and then match the SHR separately. I'm trusting analyzeCompare to remove the TEST during the peephole pass. Otherwise we need to check the flag users to see if they only use the Z flag.
This recovers a case lost by r344270.
Differential Revision: https://reviews.llvm.org/D53310
llvm-svn: 344649
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions