diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2015-01-26 22:29:24 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2015-01-26 22:29:24 +0000 |
commit | 0629ba1ad9437ef0d188cbfd03cc57775d372243 (patch) | |
tree | 817f89275f498fa52423bde2449b05d78a32167c /llvm/lib/IR/IntrinsicInst.cpp | |
parent | 9d7a15c80d77810305a56935ad6444cb89ba859e (diff) | |
download | bcm5719-llvm-0629ba1ad9437ef0d188cbfd03cc57775d372243.tar.gz bcm5719-llvm-0629ba1ad9437ef0d188cbfd03cc57775d372243.zip |
[X86][SSE] Float comparisons can sometimes be safely commuted
For ordered, unordered, equal and not-equal tests, packed float and double comparison instructions can be safely commuted without affecting the results. This patch checks the comparison mode of the (v)cmpps + (v)cmppd instructions and commutes the result if it can.
Differential Revision: http://reviews.llvm.org/D7178
llvm-svn: 227145
Diffstat (limited to 'llvm/lib/IR/IntrinsicInst.cpp')
0 files changed, 0 insertions, 0 deletions