diff options
author | Craig Topper <craig.topper@intel.com> | 2017-08-10 20:35:34 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-08-10 20:35:34 +0000 |
commit | 9a6110b2d3ea6c037923aff08c21e047999c5a47 (patch) | |
tree | 6ad00a591fe320f4f8f857af817e2f8179ed699d /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 699ae0c173bd9f9a38523a7de354f5e9cc602ecc (diff) | |
download | llvm-9a6110b2d3ea6c037923aff08c21e047999c5a47.zip llvm-9a6110b2d3ea6c037923aff08c21e047999c5a47.tar.gz llvm-9a6110b2d3ea6c037923aff08c21e047999c5a47.tar.bz2 |
[InstCombine] Make (X|C1)^C2 -> X^(C1^C2) iff X&~C1 == 0 work for splat vectors
This also corrects the description to match what was actually implemented. The old comment said X^(C1|C2), but it implemented X^((C1|C2)&~(C1&C2)). I believe ((C1|C2)&~(C1&C2)) is equivalent to (C1^C2).
Differential Revision: https://reviews.llvm.org/D36505
llvm-svn: 310658
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions