Add an instcombine for constructs like a | -(b != c); a select is more
authorEli Friedman <eli.friedman@gmail.com>
Thu, 14 Apr 2011 22:41:27 +0000 (22:41 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 14 Apr 2011 22:41:27 +0000 (22:41 +0000)
commit3ec01b7dac769449723a25d8f7d33b49c917ccc9
treea4a10203cb5dbc49036e542f5e40b9d73c56d46d
parentf6832bbda08b6975caa264de183bf3ee1d472aca
Add an instcombine for constructs like a | -(b != c); a select is more
canonical, and generally leads to better code.  Found while looking at
an article about saturating arithmetic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/or.ll