diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-03-31 20:36:00 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-03-31 20:36:00 +0000 |
| commit | b326411fdcc8061a1dda2ca53e4535a60e2d5024 (patch) | |
| tree | 0f69063af3f0abe8ddfb984f7fcaeac58d88d5aa /llvm | |
| parent | 29a9ba2a81ae9844547e4f8b77e66bdb70d49af2 (diff) | |
| download | bcm5719-llvm-b326411fdcc8061a1dda2ca53e4535a60e2d5024.tar.gz bcm5719-llvm-b326411fdcc8061a1dda2ca53e4535a60e2d5024.zip | |
[Hexagon] Fix typo in HexagonEarlyIfCConv.cpp
Found by PVS-Studio. Fixes llvm.org/PR32480.
llvm-svn: 299258
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp b/llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp index ccce8c136c3..7ee2e43bf96 100644 --- a/llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp +++ b/llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp @@ -546,7 +546,7 @@ bool HexagonEarlyIfConversion::isProfitable(const FlowPattern &FP) const { if (FP.FalseB) { FS = std::distance(FP.FalseB->begin(), FP.FalseB->getFirstTerminator()); if (FS < HEXAGON_PACKET_SIZE) - Spare += HEXAGON_PACKET_SIZE-TS; + Spare += HEXAGON_PACKET_SIZE-FS; } unsigned TotalIn = TS+FS; DEBUG(dbgs() << "Total number of instructions to be predicated/speculated: " diff --git a/llvm/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll b/llvm/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll index cbc1c327e69..91b9aaa9cb4 100644 --- a/llvm/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll +++ b/llvm/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=hexagon -o - %s | FileCheck %s +; RUN: llc -march=hexagon -hexagon-eif=0 < %s | FileCheck %s target triple = "hexagon" %struct.0 = type { i16, i16 } |

