[all-commits] [llvm/llvm-project] d14acb: [IndVarSimplify] Handle the case where both operan...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Thu Apr 10 18:03:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d14acb78065bdd331019924feaaef52e5e744529
      https://github.com/llvm/llvm-project/commit/d14acb78065bdd331019924feaaef52e5e744529
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-04-11 (Fri, 11 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    A llvm/test/Transforms/IndVarSimplify/pr135182.ll

  Log Message:
  -----------
  [IndVarSimplify] Handle the case where both operands are the same when widening IV (#135207)

`WidenIV::widenWithVariantUse` assumes that exactly one of the binop
operands is the IV to be widened. This miscompilation happens when it
tries to sign-extend the "NonIV" operand while the IV is zero-extended.
Closes https://github.com/llvm/llvm-project/issues/135182.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list