[all-commits] [llvm/llvm-project] 716e1b: [IndVars] Eliminate redundant type cast between in...

Allen via All-commits all-commits at lists.llvm.org
Fri Jul 8 02:07:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 716e1b856aa38ef1d988af73413e7e4aadad2ffa
      https://github.com/llvm/llvm-project/commit/716e1b856aa38ef1d988af73413e7e4aadad2ffa
  Author: zhongyunde <zhongyunde at huawei.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    M llvm/test/Transforms/IndVarSimplify/floating-point-iv.ll
    A llvm/test/Transforms/IndVarSimplify/floating-point-small-iv.ll

  Log Message:
  -----------
  [IndVars] Eliminate redundant type cast between integer and float

Recompute the range: match for fptosi of sitofp, and then query the range of the input to the sitofp
according the comment on D129140.

Fixes https://github.com/llvm/llvm-project/issues/55505.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D129191




More information about the All-commits mailing list