OSDN Git Service

Recognize n != 0 ? n : 1 as umax(n, 1). Previously only ULT/UGT/ULE/UGE
authorDan Gohman <gohman@apple.com>
Thu, 18 Jun 2009 20:21:07 +0000 (20:21 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 18 Jun 2009 20:21:07 +0000 (20:21 +0000)
commit30fb512e95f6a01f0c9c3426c2263ee0458de8e8
tree06b450ad82068ceecffbd1c280ac11ef82e1420a
parent6cf69cfdeec0b5713aaf96bf7d97e3a37650bd8e
Recognize n != 0 ? n : 1 as umax(n, 1). Previously only ULT/UGT/ULE/UGE
comparisons were recognized for umax, but instcombine canonicalizes
unsigned comparisons with zero to this simpler form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73717 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp