[PATCH] D79116: [InstCombine] fold fpext into Xitofp

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 11:55:27 PDT 2020


efriedma added a comment.

So the general idea here is centered around an "exact" cast: an sitofp that, for whatever reason, we know never rounds the result.  This is sort of the same idea as InstCombiner::FoldItoFPtoI, except that it's using a different method to prove the exact-ness.

Would it make sense to factor out the "IsExactIToFP" predicate into a separate method?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79116/new/

https://reviews.llvm.org/D79116





More information about the llvm-commits mailing list