llvm/test/Transforms/Reassociate
Erik Verbruggen 0edc5e8391 Reassociate x + -0.1234 * y into x - 0.1234 * y
This does not require -ffast-math, and it gives CSE/GVN more options to
eliminate duplicate expressions in, e.g.:

  return ((x + 0.1234 * y) * (x - 0.1234 * y));

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



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216169 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-21 10:45:30 +00:00
..
2002-05-15-AgressiveSubMove.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
2002-05-15-MissedTree.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
2002-05-15-SubReassociate.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
2002-07-09-DominanceProblem.ll
2003-08-12-InfiniteLoop.ll
2005-09-01-ArrayOutOfBounds.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
2006-04-27-ReassociateVector.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
2011-01-26-UseAfterFree.ll Land the long talked about "type system rewrite" patch. This 2011-07-09 17:41:24 +00:00
2012-05-08-UndefLeak.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00
2012-06-08-InfiniteLoop.ll Revert commit 158073 while waiting for a fix. The issue is that reassociate 2012-06-08 13:37:30 +00:00
absorption.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00
basictest.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
crash.ll Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ModuleID 2012-12-30 02:33:22 +00:00
fast-AgressiveSubMove.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-ArrayOutOfBounds.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-basictest.ll Reassociate x + -0.1234 * y into x - 0.1234 * y 2014-08-21 10:45:30 +00:00
fast-fp-commute.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-mightymul.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-MissedTree.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-multistep.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-ReassociateVector.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fast-SubReassociate.ll [Reassociation] Add support for reassociation with unsafe algebra. 2014-08-14 15:23:01 +00:00
fp-commute.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
inverses.ll [Reassociate] Similar to "X + -X" -> "0", added code to handle "X + ~X" -> "-1". 2014-05-31 15:01:54 +00:00
liftsign.ll Reassociate x + -0.1234 * y into x - 0.1234 * y 2014-08-21 10:45:30 +00:00
looptest.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
mightymul.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
mulfactor.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00
multistep.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
negation.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
no-op.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00
optional-flags.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00
otherops.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
pr12245.ll TBAA: remove !tbaa from testing cases if not used. 2013-04-30 17:52:57 +00:00
repeats.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00
secondary.ll
shift-factor.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
shifttest.ll Convert all tests using TCL-style quoting to use shell-style quoting. 2012-07-02 12:47:22 +00:00
subtest.ll [Reassociate] FileCheckize and cleanup a few testcases. No functional change 2014-06-11 18:28:45 +00:00
xor_reassoc.ll Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change. 2013-07-14 01:42:54 +00:00