[all-commits] [llvm/llvm-project] b9e328: [InstCombine] Fix worklist management in rewriteGE...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jun 1 02:01:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9e328fd9113327f3d5c775f367cc3f4bc2f080f
      https://github.com/llvm/llvm-project/commit/b9e328fd9113327f3d5c775f367cc3f4bc2f080f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

  Log Message:
  -----------
  [InstCombine] Fix worklist management in rewriteGEPAsOffset() more thoroughly

We need to add the replaced instruction itself to the worklist as
well. We want to remove the old instructions, but can't easily do
so directly, as the icmp is also one of the users and we need to
retain it until the fold has finished.




More information about the All-commits mailing list