commit | 8979e5f3725c05bd7120890e39399213fd08f83e | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Fri Mar 02 15:34:43 2012 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Fri Mar 02 15:34:43 2012 +0000 |
tree | 8fd22ad3d8f049fb32881a8103e5707c037c0dce | |
parent | 0c7374d87e6bf002028cd19f8ae9547927c9c645 [diff] |
LVI: Recognize the form instcombine canonicalizes range checks into when forming constant ranges. This could probably be made a lot smarter, but this is a common case and doesn't require LVI to scan a lot of code. With this change CVP can optimize away the "shift == 0" case in Hashing.h that only gets hit when "shift" is in a range not containing 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151919 91177308-0d34-0410-b5e6-96231b3b80d8