[all-commits] [llvm/llvm-project] cf444a: [Loads] Check for overflow when adding MaxPtrDiff ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Sep 2 02:55:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf444ac2adc45c1079856087b8ba9a04466f78db
      https://github.com/llvm/llvm-project/commit/cf444ac2adc45c1079856087b8ba9a04466f78db
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M llvm/lib/Analysis/Loads.cpp
    M llvm/test/Transforms/LoopVectorize/load-deref-pred-align.ll

  Log Message:
  -----------
  [Loads] Check for overflow when adding MaxPtrDiff + Offset.

MaxPtrDiff + Offset may wrap, leading to incorrect results. Use uadd_ov
to check for overflow.



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