[PATCH] D115808: [DAGCombiner] Avoid combining adjacent stores at -O0 to improve debug experience

Shivam Gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 15 09:46:29 PST 2021


xgupta created this revision.
xgupta added reviewers: RKSimon, spatel, dblaikie.
Herald added subscribers: luke957, frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
xgupta requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

When the source has a series of assignments, users reasonably want to
have the debugger step through each one individually. Turn off the combine
for adjacent stores so we get this behavior at -O0.

Similar to D7181 <https://reviews.llvm.org/D7181>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115808

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/RISCV/dbg-combine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115808.394592.patch
Type: text/x-patch
Size: 12484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211215/43261aa7/attachment.bin>


More information about the llvm-commits mailing list