[PATCH] D44367: [InstCombine] peek through FP casts for sign-bit compares (PR36682)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 11 10:25:49 PDT 2018


lebedev.ri added a comment.

In the mean time i experimented with generating the testcases (clearly, overdone it), and this patch does not handle all the cases i've come up with. Or maybe the cases are just invalid, which is more likely.

F5886407: cast-int-icmp-eq-0.ll <https://reviews.llvm.org/F5886407> (with this patch)

Generated with:

  /tmp$ clang++ bitcast.cpp
  /build/llvm/test/Transforms/InstCombine$ /tmp/a.out > cast-int-icmp-eq-0.ll; /build/llvm/utils/update_test_checks.py --opt=/build/llvm-build-Clang-release/bin/opt cast-int-icmp-eq-0.ll

F5886408: bitcast.cpp <https://reviews.llvm.org/F5886408>


https://reviews.llvm.org/D44367





More information about the llvm-commits mailing list