[all-commits] [llvm/llvm-project] 26ab44: [ConstraintElim] Make sure add-rec is for the curr...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Nov 8 06:09:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26ab444e88fc8fdd554e5a9381a68b7b5e63b6fd
      https://github.com/llvm/llvm-project/commit/26ab444e88fc8fdd554e5a9381a68b7b5e63b6fd
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    R llvm/test/Transforms/ConstraintElimination/monotonic-int-phis-adjacent-loops.ll
    A llvm/test/Transforms/ConstraintElimination/monotonic-phis-adjacent-loops.ll

  Log Message:
  -----------
  [ConstraintElim] Make sure add-rec is for the current loop.

Update addInfoForInductions to also check if the add-rec is for the
current loop. Otherwise we might add incorrect facts or crash.

Fixes a miscompile & crash introduced by 00396e6a1a0b.




More information about the All-commits mailing list