OSDN Git Service

[InstCombine] peek through FP casts for sign-bit compares (PR36682)
authorSanjay Patel <spatel@rotateright.com>
Sat, 24 Mar 2018 15:45:02 +0000 (15:45 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 24 Mar 2018 15:45:02 +0000 (15:45 +0000)
commit51bf1123ff2196f0f0861b56adead7b094c80a6d
tree7fb3fbb5db19424a09cb896e391e153b1bda9782
parent97758c96a5ed62fadd23da219e46c58b9a8255d5
[InstCombine] peek through FP casts for sign-bit compares (PR36682)

This pattern came up in PR36682:
https://bugs.llvm.org/show_bug.cgi?id=36682
https://godbolt.org/g/LhuD9A

Equality checks are planned as a follow-up enhancement.

Differential Revision: https://reviews.llvm.org/D44367

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/cast-int-icmp-eq-0.ll
test/Transforms/InstCombine/icmp.ll