[all-commits] [llvm/llvm-project] 9e0aa6: [SCEV] Prove implied conditions via matching SCEV ...

Timur Golubovich via All-commits all-commits at lists.llvm.org
Wed Jul 1 00:26:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e0aa61f75299f91b9e063ba46d2e33aa164cf7a
      https://github.com/llvm/llvm-project/commit/9e0aa61f75299f91b9e063ba46d2e33aa164cf7a
  Author: Timur Golubovich <timur.golubovich at intel.com>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolution.h
    M llvm/lib/Analysis/ScalarEvolution.cpp
    A llvm/test/Transforms/IndVarSimplify/X86/fold-correlated-iv-comparisons.ll
    R llvm/test/Transforms/LoopStrengthReduce/X86/lsr-icmpzero-no-inttoptr.ll

  Log Message:
  -----------
  [SCEV] Prove implied conditions via matching SCEV differences (#201839)

Add isImpliedCondOperandsViaMatchingDiff to fold equality comparisons
when getMinusSCEV(LHS, RHS) == getMinusSCEV(FoundLHS, FoundRHS).
This handles correlated IV comparisons in loops with multiple pointer
IVs sharing the same stride.



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