[DAG] combineShiftAnd1ToBitTest - improve support for peeking through truncations
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Mar 2023 16:37:41 +0000 (16:37 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Mar 2023 16:37:47 +0000 (16:37 +0000)
commitfad852efe4d6a65293f30825b5ff60b4f0fcd429
treea05444da0c00eec88ce1eb15eb8dc53a65c9df25
parent56cc0bbe41fd41fb0766062ca0975eba64e92447
[DAG] combineShiftAnd1ToBitTest - improve support for peeking through truncations

Allows us to handle shift amounts that exceed the original bitwidth
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/test-vs-bittest.ll