[PATCH] D72299: [DSE] Improve mayThrowBetween for 2 instructions in the same BB.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 12:52:10 PST 2020


fhahn created this revision.
fhahn added reviewers: dmgreen, rnk, efriedma, bryant, asbirlea, Tyker.
Herald added subscribers: jfb, hiraditya.
Herald added a project: LLVM.

This patch adds a way to quickly check if there are throwing instructions
between two instructions in the same basic block.

To do so, we first number all instructions in a BB starting from 0 and
incrementing the counter every time we hit a throwing instruction. If
2 instructions have the same number, there is no throwing instruction
between them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72299

Files:
  llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
  llvm/test/Transforms/DeadStoreElimination/MSSA/combined-partial-overwrites.ll
  llvm/test/Transforms/DeadStoreElimination/MSSA/simple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72299.236440.patch
Type: text/x-patch
Size: 7003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200106/6f1cb4ae/attachment.bin>


More information about the llvm-commits mailing list