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
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: "
-; 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 }