]> granicus.if.org Git - llvm/commit
[TargetLowering] fix SETCC SETLT folding with FP types
authorSanjay Patel <spatel@rotateright.com>
Sun, 12 Feb 2017 23:07:52 +0000 (23:07 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 12 Feb 2017 23:07:52 +0000 (23:07 +0000)
commit771a901cd41673cc86500c479007fa07acdfc8a1
treee8488e91bc621a8a95717a640d01e0c2e02f4059
parent37082b928cd4997a11b7f71c4eafcf0300deabfd
[TargetLowering] fix SETCC SETLT folding with FP types

The bug was introduced with:
https://reviews.llvm.org/rL294863

...and manifests as a selection failure in x86, but that's actually
another bug. This fix prevents wrong codegen with -0.0, but in the
more common case when we have NSZ and NNAN (-ffast-math), we should
still be able to fold this setcc/compare.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/vselect-pcmp.ll