[X86] Avoid SFB - Fix inconsistent codegen with/without debug info(2)
authorRobert Lougher <rob.lougher@gmail.com>
Mon, 1 Jul 2019 18:28:21 +0000 (18:28 +0000)
committerRobert Lougher <rob.lougher@gmail.com>
Mon, 1 Jul 2019 18:28:21 +0000 (18:28 +0000)
commite20030f61217a2353d4449d4f0585c7eca42a850
tree3a80317cdc02480686502567f4fe9a404ed7e97a
parent7f8c7209397d36a6419939c9c7b6c20fd8027099
[X86] Avoid SFB - Fix inconsistent codegen with/without debug info(2)

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.

Patch by Chris Dawson.

Differential Revision: https://reviews.llvm.org/D62408

llvm-svn: 364829
llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
llvm/test/CodeGen/X86/avoid-sfb-g-no-change2.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/avoid-sfb-g-no-change3.mir [new file with mode: 0644]