[PATCH] D66687: [DAGCombiner] try to form more bt/test + set out of shift+mask patterns
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 14:36:58 PDT 2019
xbolva00 added a comment.
Yeah,
int foo_b(int a) {
return (a&1024) == 0;
}
seems to form tstbit..
but more typical case:
_Bool afoo_b(int a) {
return (a&1024) == 0;
}
forms and and cmp.eq...
if hexagon enables hasBitTest(), it is not ideal that it cannot handle this basic case - it should be fixed.
https://godbolt.org/z/gG-6j4
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66687/new/
https://reviews.llvm.org/D66687
More information about the llvm-commits
mailing list