[BreakFalseDeps] ignore function with minsize attribute
authorSanjay Patel <spatel@rotateright.com>
Mon, 23 Sep 2019 17:01:01 +0000 (17:01 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 23 Sep 2019 17:01:01 +0000 (17:01 +0000)
commit7414151929b60a4ba90570bd814610a20e44d76a
tree4f1de6febe69c5c2ac645f829af069ec03e9b5bb
parent7e56dd0229f8898177d51b64dfb23828c990feed
[BreakFalseDeps] ignore function with minsize attribute

This came up in the x86-specific:
https://bugs.llvm.org/show_bug.cgi?id=43239
...but it is a general problem for the BreakFalseDeps pass.
Dependencies may be broken by adding some other instruction,
so that should be avoided if the overall goal is to minimize size.

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

llvm-svn: 372628
llvm/lib/CodeGen/BreakFalseDeps.cpp
llvm/test/CodeGen/ARM/a15-partial-update.ll
llvm/test/CodeGen/X86/sqrt-partial.ll
llvm/test/CodeGen/X86/stack-folding-fp-avx1.ll
llvm/test/CodeGen/X86/stack-folding-fp-sse42.ll