[all-commits] [llvm/llvm-project] ebbb54: [Clang] Fix variant crashes from GH58028, GH57370

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Oct 3 03:54:50 PDT 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ebbb5446b0a241a1dc751df2eaa9898b26668834
      https://github.com/llvm/llvm-project/commit/ebbb5446b0a241a1dc751df2eaa9898b26668834
  Author: Roy Jacobson <roi.jacobson1 at gmail.com>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    A clang/test/SemaCXX/specialization-diagnose-crash.cpp

  Log Message:
  -----------
  [Clang] Fix variant crashes from GH58028, GH57370

Fixes a null dereference in some diagnostic issuing code.

Closes https://github.com/llvm/llvm-project/issues/57370
Closes https://github.com/llvm/llvm-project/issues/58028

Reviewed By: shafik

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

(cherry picked from commit 9415aad6a40fec74296008a25f34164a95c857f4)


  Commit: 966e71daafeabf8ec47555441dfd7c8ddd179336
      https://github.com/llvm/llvm-project/commit/966e71daafeabf8ec47555441dfd7c8ddd179336
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-epilog-vect.ll

  Log Message:
  -----------
  [LV] Convert sve-epilog-vect.ll to use opaque pointers.

(cherry picked from commit 05b3493819fa8aba1eb7510afbcb80a64148beb6)


  Commit: b3669eb4ae60602590e273ea24dc906c35123d22
      https://github.com/llvm/llvm-project/commit/b3669eb4ae60602590e273ea24dc906c35123d22
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-epilog-vect.ll

  Log Message:
  -----------
  [LV] Add test for #57912.

Add test showing miscompilation during epilogue vectorization with SVE.

(cherry picked from commit 17167005d532dce35ade3a47a0403ffaa7fff6ff)


  Commit: 5f620d003fda20d2acf4ce6383838703b1efbab2
      https://github.com/llvm/llvm-project/commit/5f620d003fda20d2acf4ce6383838703b1efbab2
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-epilog-vect.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-live-out-pointer-induction.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-gep.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-phi.ll

  Log Message:
  -----------
  [LV] Update handling of scalable pointer inductions after b73d2c8.

The dependent code has been changed quite a lot since 151c144 which
b73d2c8 effectively reverts. Now we run into a case where lowering
didn't expect/support the behavior pre 151c144 any longer.

Update the code dealing with scalable pointer inductions to also check
for uniformity in combination with isScalarAfterVectorization. This
should ensure scalable pointer inductions are handled properly during
epilogue vectorization.

Fixes #57912.

(cherry picked from commit 2c692d891ed639779b1c4b504ca63037bbacc0e8)


Compare: https://github.com/llvm/llvm-project/compare/77ff99c10bee...5f620d003fda


More information about the All-commits mailing list