summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-11-05 16:50:44 +0000
committerSanjay Patel <spatel@rotateright.com>2018-11-05 16:50:44 +0000
commit87aa10062c0170a6a8cb79427655a086cf253b97 (patch)
treedbfd48948ba83c1ead2f5c7164a36b1d5f36a582 /clang/lib/Format/Format.cpp
parent8b2a1f7fd92a858d8d71a4bc9dcbd20f8af62dc4 (diff)
downloadbcm5719-llvm-87aa10062c0170a6a8cb79427655a086cf253b97.tar.gz
bcm5719-llvm-87aa10062c0170a6a8cb79427655a086cf253b97.zip
[InstCombine] loosen FP 0.0 constraint for fcmp+select substitution
It looks like we correctly removed edge cases with 0.0 from D50714, but we were a bit conservative because getBinOpIdentity() doesn't distinguish between +0.0 and -0.0 and 'nsz' is effectively always true for fcmp (see discussion in: https://bugs.llvm.org/show_bug.cgi?id=38086 Without this change, we would get regressions by canonicalizing to +0.0 in all fcmp, and that's a step towards solving: https://bugs.llvm.org/show_bug.cgi?id=39475 llvm-svn: 346143
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud