[all-commits] [llvm/llvm-project] 927878: [SLP] Drop nuw when add/sub interchange negates a ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Sun Jul 12 12:26:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 927878dab67545e7448a82921446e339b6b55f79
      https://github.com/llvm/llvm-project/commit/927878dab67545e7448a82921446e339b6b55f79
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-07-12 (Sun, 12 Jul 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/add-sub-nuw.ll

  Log Message:
  -----------
  [SLP] Drop nuw when add/sub interchange negates a nonzero constant

sub nuw X, C requires X u>= C, but add nuw X, -C requires X u< C, so
nuw must always be dropped on interchange.

Fixes #209023

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/209047



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