[PATCH] D61680: [X86] Avoid SFB - Fix inconsistent codegen with/without debug info

Chris Dawson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 07:05:55 PDT 2019


cdawson created this revision.
cdawson added reviewers: craig.topper, lsaba, RKSimon.
Herald added subscribers: hiraditya, aprantl.
Herald added a project: LLVM.

Fixes https://bugs.llvm.org/show_bug.cgi?id=40969

The functions findPotentiallyBlockedCopies and buildCopy are currently not
accounting for the presence of debug instructions. In the former this results
in the optimization not being trigerred, and in the latter results in        
inconsistent codegen.

This patch enables the optimization to be performed in a debug build and     
ensures the codegen is consistent with non-debug builds.


https://reviews.llvm.org/D61680

Files:
  llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
  llvm/test/CodeGen/X86/avoid-sfb-g-no-change.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61680.198651.patch
Type: text/x-patch
Size: 6842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190508/f344b86d/attachment.bin>


More information about the llvm-commits mailing list