[PATCH] D44424: [InstCombine] peek through unsigned FP casts for zero-equality compares (PR36682)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 15 06:32:36 PDT 2018


lebedev.ri added a comment.

I'm looking at this more, and i expect that `sitofp/uitofp + bitcast + icmp eq/ne` -> `icmp eq/ne` combine is valid/can be generalized for more constants.
At the very least for all power-of-two constants.
F5895084: fp-constants.txt <https://reviews.llvm.org/F5895084>
This is currently not done, at least not fully, https://godbolt.org/g/j5BSZ2

But that is for later.


Repository:
  rL LLVM

https://reviews.llvm.org/D44424





More information about the llvm-commits mailing list