[X86] Add additional 'add/sub single bit' patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Mar 2022 17:16:46 +0000 (17:16 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 24 Mar 2022 17:20:08 +0000 (17:20 +0000)
commitdc58c3ba9379f2306bb82c88135c7c48bd161965
tree64981fc0df8dbae963618cab70229a396559f606
parent6d8ce42825ec70cdf79d74f268e0317d0e68cb59
[X86] Add additional 'add/sub single bit' patterns

InstCombine can convert some cases to 'splat bit' sra(shl(x,y),bw-1) patterns which we need to handle as well
llvm/test/CodeGen/X86/add-sub-bool.ll