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)
commit2211d38267b5140d262cd61ceb7ac7fd1d826a13
tree2f43a7b2b55449f9468085aec4c1d73c724e3c93
parent728315adf4c24bd22667401633de9f4ca84389df
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225660 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/condprop.ll
test/Transforms/GVN/edge.ll