[all-commits] [llvm/llvm-project] 7914e5: [ConstraintElimination] Fix crash when combining r...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Sep 17 06:49:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7914e53e312074828293356f569d190ac6eae3bd
      https://github.com/llvm/llvm-project/commit/7914e53e312074828293356f569d190ac6eae3bd
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-09-17 (Sat, 17 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll

  Log Message:
  -----------
  [ConstraintElimination] Fix crash when combining results.

f213128b292d didn't account for the possibility that the result of
decompose may be empty. Fix that by explicitly checking. Use a newly
introduced helper to also reduce some duplication.

Thanks @bjope for finding the issue!




More information about the All-commits mailing list