[all-commits] [llvm/llvm-project] 97ad26: [LoopFlatten] Invalidate SCEV on each widening (#2...

Arda Serdar Pektezol via All-commits all-commits at lists.llvm.org
Tue Sep 8 02:43:21 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97ad26d9bfdb0c83bc6edc3de016fb7bc7b3d5b3
      https://github.com/llvm/llvm-project/commit/97ad26d9bfdb0c83bc6edc3de016fb7bc7b3d5b3
  Author: Arda Serdar Pektezol <arda at pektezol.dev>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopFlatten.cpp
    A llvm/test/Transforms/LoopFlatten/invalidate-scev-pr203176.ll

  Log Message:
  -----------
  [LoopFlatten] Invalidate SCEV on each widening (#211819)

LoopFlatten can update a loop before deciding on not to flatten it due
to profitability. SCEV has cached loop information during the checks and
the widening, where it can lead to stale data if the pass bails at
flattening. Invalidate it after each successful widening.

Fixes #203176

Co-authored-by: Steve Gustaman <stevegustaman at kaist.ac.kr>



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