1. [InstCombine] avoid crash from deleting an instruction that still has (details)
  2. [RISCV][NFC] Add CFI-related tests (details)
Commit ef02831f0a4e3b3ccaa45a5589e4cabecbf527ab by spatel
[InstCombine] avoid crash from deleting an instruction that still has
uses (PR43723)
We gather a set of white-listed instructions in isAllocSiteRemovable()
and then replace/erase them. But we don't know in general if the
instructions in the set have uses amongst themselves, so order of
deletion makes a difference.
There's already a special-case for the llvm.objectsize intrinsic, so add
another for llvm.invariant.end.
Should fix:
Differential Revision:
The file was modifiedllvm/test/Transforms/InstCombine/builtin-object-size-ptr.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstructionCombining.cpp
Commit be0fead7bffbf65c519ca50c89584e65dcf18793 by luismarques
[RISCV][NFC] Add CFI-related tests
Summary: Adds tests necessary to properly show the impact of other
patches that affect the emission of CFI directives.
Reviewers: asb, lenary Reviewed By: lenary Tags: #llvm Differential
The file was modifiedllvm/lib/Target/RISCV/RISCVFrameLowering.cpp
The file was modifiedllvm/test/CodeGen/RISCV/frame-info.ll
The file was modifiedllvm/test/CodeGen/RISCV/vararg.ll