[InstCombine] allow not+sub fold for arbitrary vector constants
authorSanjay Patel <spatel@rotateright.com>
Sun, 2 Sep 2018 19:31:45 +0000 (19:31 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 2 Sep 2018 19:31:45 +0000 (19:31 +0000)
commit17e709b66ac01f097e124ab058f0e483b597492d
tree7e5b4eaf3cc42267cdd50a77e1bfa8d809aca0e5
parent04ab22b3f40968ddf9484d39a273433c9f2fc532
[InstCombine] allow not+sub fold for arbitrary vector constants

The fold was implemented for the general case but use-limitation,
but the later constant version which didn't check uses was only
matching splat constants.

llvm-svn: 341292
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/not.ll