[PATCH] D31604: [DebugInfo][X86] Improve X86 Optimize LEAs handling of debug values.
Andrew Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 08:03:46 PDT 2017
andrewng updated this revision to Diff 96920.
andrewng edited the summary of this revision.
andrewng added a comment.
As suggested by Adrian, I have made prependDIExpr a static member function of DIExpression (and also appendOffset used by prependDIExpr). This is then used to apply the LEA address shift to the replacement debug value.
https://reviews.llvm.org/D31604
Files:
include/llvm/IR/DebugInfoMetadata.h
lib/IR/DebugInfoMetadata.cpp
lib/Target/X86/X86OptimizeLEAs.cpp
lib/Transforms/Utils/Local.cpp
test/CodeGen/X86/lea-opt-with-debug.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31604.96920.patch
Type: text/x-patch
Size: 18294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170427/18ce07fd/attachment.bin>
More information about the llvm-commits
mailing list