indvars: fix a pass-sensitivity issue that would hit the SCEVExpander
authorAndrew Trick <atrick@apple.com>
Sat, 16 Jul 2011 01:18:53 +0000 (01:18 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 16 Jul 2011 01:18:53 +0000 (01:18 +0000)
commit5614769d557600fda3cf73b481581fe32fbff258
tree27ff3f8d500d97e124d7d03858c3a8dd52e173d1
parent6f684b0becc4c1b2ece3ec6dcecf30b19343128d
indvars: fix a pass-sensitivity issue that would hit the SCEVExpander
assertion I added in r135333. Check for the existence of a preheader
before expanding a recurrence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp