OSDN Git Service

Handle ands with 0 and shifts by 0 correctly. These aren't
authorDan Gohman <gohman@apple.com>
Sat, 25 Apr 2009 17:05:40 +0000 (17:05 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 25 Apr 2009 17:05:40 +0000 (17:05 +0000)
commit2c73d5fb9e3d68c96bb2242bbbf2930a8db10343
tree7871a90ca0cb7812f7fe9a280dc3c92ea1adc2a5
parent4cdc44c82c4415b467760065fed146f73933c67b
Handle ands with 0 and shifts by 0 correctly. These aren't
common, but indvars shouldn't crash on them. This fixes PR4054.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70051 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarSimplify/avoid-i0.ll [new file with mode: 0644]