[PATCH] D62408: [X86] Avoid SFB - Fix inconsistent codegen with/without debug info(2)

Chris Dawson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 09:55:50 PDT 2019


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

The function `findPotentialBlockers` may consider debug info instructions as potential blockers
and may stop searching for a store-load pair prematurely.

This patch corrects this and tests the cases where the store is separated from the 
load by more than `InspectionLimit` debug instructions.

See D61680 <https://reviews.llvm.org/D61680> for a previous simmilar fix in this area.


https://reviews.llvm.org/D62408

Files:
  llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
  llvm/test/CodeGen/X86/avoid-sfb-g-no-change2.mir
  llvm/test/CodeGen/X86/avoid-sfb-g-no-change3.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62408.201277.patch
Type: text/x-patch
Size: 27989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190524/9890baec/attachment.bin>


More information about the llvm-commits mailing list