[all-commits] [llvm/llvm-project] 9eda78: [ConstraintElim] Fix sort order to not comparing i...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Dec 6 15:47:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9eda78107c4d9baca947b7bd9e0ce1c72474a59b
      https://github.com/llvm/llvm-project/commit/9eda78107c4d9baca947b7bd9e0ce1c72474a59b
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/assumes.ll

  Log Message:
  -----------
  [ConstraintElim] Fix sort order to not comparing insts in different bbs.

Update the sort order to make sure that comesBefore is never used from
conditional facts, which are instructions but may use DFS numbers from
different blocks.

This fixes a crash in the added test on some platforms.




More information about the All-commits mailing list