[all-commits] [llvm/llvm-project] ac51ad: [LiveIntervals] Fix asan debug build failures

Jay Foad via All-commits all-commits at lists.llvm.org
Fri Sep 24 11:15:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac51ad24a75c02152f8ece943d65de9a1c4e947a
      https://github.com/llvm/llvm-project/commit/ac51ad24a75c02152f8ece943d65de9a1c4e947a
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-09-24 (Fri, 24 Sep 2021)

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

  Log Message:
  -----------
  [LiveIntervals] Fix asan debug build failures

Call RemoveMachineInstrFromMaps before erasing instrs.
repairIntervalsInRange will do this for you after erasing the
instruction, but it's not safe to rely on it because assertions in
SlotIndexes::removeMachineInstrFromMaps refer to fields in the erased
instruction.

This fixes asan buildbot failures caused by D110328.




More information about the All-commits mailing list