diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-01-03 15:37:49 +0300 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-01-03 17:55:45 +0300 |
| commit | e4de8db67eb7a2d64cba078c38f0fd25499013c1 (patch) | |
| tree | f03099f0037743266025ff4a129fef95f0ac410f /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
| parent | 1711be78f74064d563b165f20debd769929eca06 (diff) | |
| download | bcm5719-llvm-e4de8db67eb7a2d64cba078c38f0fd25499013c1.tar.gz bcm5719-llvm-e4de8db67eb7a2d64cba078c38f0fd25499013c1.zip | |
[NFC][DAGCombine][X86] Tests for 'A - (A & C)' pattern (PR44448)
Name: PR44448 ptr - (ptr & C) -> ptr & (~C)
%bias = and i32 %ptr, C
%r = sub i32 %ptr, %bias
=>
%r = and i32 %ptr, ~C
The main motivational pattern involes pointer-typed values,
so this transform can't really be done in middle-end.
See
https://bugs.llvm.org/show_bug.cgi?id=44448
https://reviews.llvm.org/D71499
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
0 files changed, 0 insertions, 0 deletions

