[PATCH] D85756: [DebugInstrRef][5/9] Substitute debug value numbers to handle optimisations
Jeremy Morse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 10:11:12 PDT 2020
jmorse created this revision.
jmorse added a reviewer: debug-info.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
jmorse requested review of this revision.
This patch handles two optimisations, TwoAddressInstruction and X86's FixupLEAs pass, both of which optimise by re-creating instructions. For LEAs, various bits of arithmetic are better represented as LEAs on X86, while TwoAddressInstruction sometimes converts instrs into three address instructions if it's profitable. Both of these require substitutions to be created -- test that an entry is made in the MIR output. (Handling of this in LiveDebugValues comes later).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85756
Files:
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/lib/Target/X86/X86FixupLEAs.cpp
llvm/test/DebugInfo/MIR/InstrRef/twoaddr-to-threeaddr-sub.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85756.284805.patch
Type: text/x-patch
Size: 3832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/00f72a41/attachment.bin>
More information about the llvm-commits
mailing list