[all-commits] [llvm/llvm-project] 10f015: [MachineLateInstrsCleanup] Bugfix for handling of ...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Mon May 8 08:15:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10f0158f005c5405058118ae9a810e2019382cb7
      https://github.com/llvm/llvm-project/commit/10f0158f005c5405058118ae9a810e2019382cb7
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp

  Log Message:
  -----------
  [MachineLateInstrsCleanup] Bugfix for handling of kill flags.

With cb57b7a7, the kill flags are now tracked during the forward search over
the instructions and the call to findRegisterUseOperandIdx() should therefore
only check for killing uses.

As shown with the failing test CodeGen/Hexagon/vector-sint-to-fp.ll, it could
otherwise be the case that an undef use after the instruction that killed the
register will be inserted into MBBKills, and the kill flag will not be
cleared.




More information about the All-commits mailing list