[all-commits] [llvm/llvm-project] c048a0: [InstCombine] fold FP trunc into exact itofp

RotateRight via All-commits all-commits at lists.llvm.org
Sun May 24 06:33:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c048a02b5b26c21a2a891131e3d52c7ddbc3cf62
      https://github.com/llvm/llvm-project/commit/c048a02b5b26c21a2a891131e3d52c7ddbc3cf62
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-05-24 (Sun, 24 May 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/fptrunc.ll

  Log Message:
  -----------
  [InstCombine] fold FP trunc into exact itofp

Similar to D79116 and rGbfd512160fe0 - if the 1st cast
is exact, then we can go directly to the destination
type because there is no double-rounding.




More information about the All-commits mailing list