[InstCombine] Add support for zext(and(neg(amt),width-1)) rotate shift amount patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 26 Oct 2020 11:04:48 +0000 (11:04 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 26 Oct 2020 11:22:41 +0000 (11:22 +0000)
commit6b2eb31e1e2db1f3ca7a5c4914ab08cb18698de7
tree0dff01a837ce21f5a74813a0f98f918644ef16fb
parent821f3b763ae506b329144550028a4fd0cba0a361
[InstCombine] Add support for zext(and(neg(amt),width-1)) rotate shift amount patterns

Alive2: https://alive2.llvm.org/ce/z/bCvvHd
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/rotate.ll