GVN: propagate equalities for floating point compares
authorSanjay Patel <spatel@rotateright.com>
Mon, 12 Jan 2015 19:29:48 +0000 (19:29 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 12 Jan 2015 19:29:48 +0000 (19:29 +0000)
commit5f1d9eaad35ee3fa9f474e58d90a9708711c5726
tree1507915bac665ec52d23763d6c6e573b8e790362
parenta0c32e9310993f59937c43914dea42701cb152ee
GVN: propagate equalities for floating point compares

Allow optimizations based on FP comparison values in the same way
as integers.

This resolves PR17713:
http://llvm.org/bugs/show_bug.cgi?id=17713

Differential Revision: http://reviews.llvm.org/D6911

llvm-svn: 225660
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/test/Transforms/GVN/condprop.ll
llvm/test/Transforms/GVN/edge.ll