Fix a pair of issues that caused an infinite loop in reassociate.
authorOwen Anderson <resistor@mac.com>
Fri, 20 Nov 2015 08:16:13 +0000 (08:16 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 20 Nov 2015 08:16:13 +0000 (08:16 +0000)
commit3f9c2909a59bff96037218dfea1c273943450a44
tree187d51717454ecc75add694fdeb5fceb0fc252c3
parent6be7f00207fb96925c53b88e7b879c7546390e72
Fix a pair of issues that caused an infinite loop in reassociate.

Terrifyingly, one of them is a mishandling of floating point vectors
in Constant::isZero().  How exactly this issue survived this long
is beyond me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253655 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Constants.cpp
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/fp-expr.ll [new file with mode: 0644]