diff options
author | Sanjay Patel <spatel@rotateright.com> | 2014-12-19 16:44:08 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2014-12-19 16:44:08 +0000 |
commit | ea3c8028871749a289d9d40a13962c0cf90d3c35 (patch) | |
tree | 4054430c163a821c8006a9b74c1de2d8b9c5c7f6 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | 55ef1515021a9dea737bea38468950999945884a (diff) | |
download | bcm5719-llvm-ea3c8028871749a289d9d40a13962c0cf90d3c35.tar.gz bcm5719-llvm-ea3c8028871749a289d9d40a13962c0cf90d3c35.zip |
use -0.0 when creating an fneg instruction
Backends recognize (-0.0 - X) as the canonical form for fneg
and produce better code. Eg, ppc64 with 0.0:
lis r2, ha16(LCPI0_0)
lfs f0, lo16(LCPI0_0)(r2)
fsubs f1, f0, f1
blr
vs. -0.0:
fneg f1, f1
blr
Differential Revision: http://reviews.llvm.org/D6723
llvm-svn: 224583
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
0 files changed, 0 insertions, 0 deletions