OSDN Git Service

[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)
commit3871c498921e3fc5861c18ed1bf2ecbef86950e1
tree3d0554981e37fd5e5d8caa8f0d536932797753a9
parent17d7fd53f6dec6bb77543e0ec2f5a805d3112058
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364829 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
test/CodeGen/X86/avoid-sfb-g-no-change2.mir [new file with mode: 0644]
test/CodeGen/X86/avoid-sfb-g-no-change3.mir [new file with mode: 0644]