[all-commits] [llvm/llvm-project] e2f629: [VectorCombine] Discard ScalarizationResult state ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Sep 28 04:52:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2f6290e06be63149af770197b772248369ac038
      https://github.com/llvm/llvm-project/commit/e2f6290e06be63149af770197b772248369ac038
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/AArch64/load-extractelement-scalarization.ll

  Log Message:
  -----------
  [VectorCombine] Discard ScalarizationResult state in early exit.

ScalarizationResult's destructor makes sure ToFreeze is not ignored if
set. Currently, scalarizeLoadExtract has an early exit if the index is
not safe directly. But when it is SafeWithFreeze, we need to discard the
state first, otherwise we hit the assert in the destructor.

Fixes PR51992.




More information about the All-commits mailing list