only factor from expressions whose uses are empty and whose
authorChris Lattner <sabre@nondot.org>
Sat, 9 Jan 2010 06:01:36 +0000 (06:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Jan 2010 06:01:36 +0000 (06:01 +0000)
commitc2d1b6949c5141d21827cc94daea6ae4b1a9c750
tree82bada6a477f4499cd02e1e9a5530300f6af43e3
parentd1996360399ad6dbe75ee185b661b16c83146373
only factor from expressions whose uses are empty and whose
base is the right expression type.  This fixes PR5981.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/crash.ll