[all-commits] [llvm/llvm-project] 2d17fc: [TableGen] Reorder code in ContractNodes to preven...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jan 31 23:47:59 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d17fc4ca31dcc8fdc5df0c554d548e348a5ee0b
      https://github.com/llvm/llvm-project/commit/2d17fc4ca31dcc8fdc5df0c554d548e348a5ee0b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-01-31 (Fri, 31 Jan 2025)

  Changed paths:
    M llvm/utils/TableGen/DAGISelMatcherOpt.cpp

  Log Message:
  -----------
  [TableGen] Reorder code in ContractNodes to prevents unnecessary recursion. NFC

The code that moves CheckOpcode before CheckType/CheckChildType/RecordDwith
was running after ContractNodes started unwinding its recursion. If a
move occurs we would start a new recursion going forward
through the list again. I don't believe this can lead to any new
combines so it was just wasted work.

This patch moves the code earlier so it doesn't start a new recursion.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list