[all-commits] [llvm/llvm-project] 08b20f: [ConstantFold] Use getFltSemantics instead of manu...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Thu May 5 06:54:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08b20f20d2854377009822dfe597c78a4bf18de8
      https://github.com/llvm/llvm-project/commit/08b20f20d2854377009822dfe597c78a4bf18de8
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/test/Transforms/InstSimplify/ConstProp/cast.ll

  Log Message:
  -----------
  [ConstantFold] Use getFltSemantics instead of manually checking the type

Simplifies the code and makes fpext/fptrunc constant folding not crash
when the result is bf16.




More information about the All-commits mailing list