[all-commits] [llvm/llvm-project] 598f15: [ConstraintElim] Fix integer overflow when negatin...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Jul 19 14:52:19 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 598f15297528855682dcf381575a9c14a7faabc3
      https://github.com/llvm/llvm-project/commit/598f15297528855682dcf381575a9c14a7faabc3
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-07-19 (Sun, 19 Jul 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/constraint-overflow.ll

  Log Message:
  -----------
  [ConstraintElim] Fix integer overflow when negating constraint (#210627)

Negating a coefficient (e.g. INT64_MIN) can overflow; skip adding the
inverted constraint if it wraps.

Fixes an UBSan failure for the added test.



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