[all-commits] [llvm/llvm-project] 39b210: [SLP]Fix a crash for reduced values with minbitwid...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Jan 12 04:50:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39b2104b4a4e0990eddc763eab99b28e8deab953
      https://github.com/llvm/llvm-project/commit/39b2104b4a4e0990eddc763eab99b28e8deab953
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-01-12 (Fri, 12 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/reused-reductions-with-minbitwidth.ll

  Log Message:
  -----------
  [SLP]Fix a crash for reduced values with minbitwidth, which are reused.

If the reduced values are additionally affected by minbitwidth analysis,
need to cast them to a proper type before doing any math, if they are
reused.




More information about the All-commits mailing list