diff options
author | Sumanth Gundapaneni <sgundapa@quicinc.com> | 2020-04-10 12:50:43 -0500 |
---|---|---|
committer | Sumanth Gundapaneni <sgundapa@quicinc.com> | 2020-04-10 12:52:16 -0500 |
commit | a04ab2ec08014d36337d686d43ecef7668622f1b (patch) | |
tree | 890f69fd2e93dda7867fef3082ade25775f8e62d /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | bef187c75090fee0ab5b081db0f4b5ca075c4932 (diff) | |
download | llvm-a04ab2ec08014d36337d686d43ecef7668622f1b.zip llvm-a04ab2ec08014d36337d686d43ecef7668622f1b.tar.gz llvm-a04ab2ec08014d36337d686d43ecef7668622f1b.tar.bz2 |
[Pipeliner] Fix the bug in pragma that disables the pipeliner.
Differential Revision: https://reviews.llvm.org/D76303.
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 41a53d1..efb4405 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -259,6 +259,9 @@ bool MachinePipeliner::scheduleLoop(MachineLoop &L) { } void MachinePipeliner::setPragmaPipelineOptions(MachineLoop &L) { + // Reset the pragma for the next loop in iteration. + disabledByPragma = false; + MachineBasicBlock *LBLK = L.getTopBlock(); if (LBLK == nullptr) |