[all-commits] [llvm/llvm-project] 10f41a: [SLP]Fix PR55688: Miscompile due to incorrect nuw/...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Wed May 25 14:00:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10f41a214767219ef369b217f685eb545b80e386
      https://github.com/llvm/llvm-project/commit/10f41a214767219ef369b217f685eb545b80e386
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-05-25 (Wed, 25 May 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/horizontal.ll
    M llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll
    M llvm/test/Transforms/SLPVectorizer/X86/horizontal.ll
    M llvm/test/Transforms/SLPVectorizer/X86/remark_horcost.ll
    M llvm/test/Transforms/SLPVectorizer/X86/scheduling.ll

  Log Message:
  -----------
  [SLP]Fix PR55688: Miscompile due to incorrect nuw/nsw handling.

Need to use all ReductionOps when propagating flags for the reduction
ops, otherwise transformation is not correct. Plus, need to drop nuw/nsw
flags.

Differential Revision: https://reviews.llvm.org/D126371




More information about the All-commits mailing list