[all-commits] [llvm/llvm-project] 458dfb: [SCEV] Fix sext handling for `getConstantMultiple`...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Thu Nov 21 01:23:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 458dfbd855806461b4508bf8845cafe0411dbfd4
      https://github.com/llvm/llvm-project/commit/458dfbd855806461b4508bf8845cafe0411dbfd4
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-11-21 (Thu, 21 Nov 2024)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    A llvm/test/Analysis/ScalarEvolution/pr116483.ll
    A llvm/test/Transforms/IndVarSimplify/pr116483.ll

  Log Message:
  -----------
  [SCEV] Fix sext handling for `getConstantMultiple` (#117093)

Counterexample: 219 is a multiple of 73. But `sext i8 219 to i16 =
65499` is not.
Fixes https://github.com/llvm/llvm-project/issues/116483.



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