[all-commits] [llvm/llvm-project] a101a9: [SLP]Fix compiler crash when calculating extract c...

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Mon Dec 6 10:46:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a101a9b64b31ed20e4d18c2e395b0a3742ad1836
      https://github.com/llvm/llvm-project/commit/a101a9b64b31ed20e4d18c2e395b0a3742ad1836
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/extracts-with-undefs.ll

  Log Message:
  -----------
  [SLP]Fix compiler crash when calculating extract cost for undefs.

Need to add an extra check for potential undef values in
computeExtractCost function to avoid compiler crash on casting to
instructon.

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




More information about the All-commits mailing list