[Hexagon] Fix typo in HexagonEarlyIfCConv.cpp

Found by PVS-Studio. Fixes llvm.org/PR32480.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Krzysztof Parzyszek 2017-03-31 20:36:00 +00:00
parent 2215b7d1b2
commit 8b1380a009
2 changed files with 2 additions and 2 deletions

View File

@ -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: "

View File

@ -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 }