[llvm] r299258 - [Hexagon] Fix typo in HexagonEarlyIfCConv.cpp
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 13:36:01 PDT 2017
Author: kparzysz
Date: Fri Mar 31 15:36:00 2017
New Revision: 299258
URL: http://llvm.org/viewvc/llvm-project?rev=299258&view=rev
Log:
[Hexagon] Fix typo in HexagonEarlyIfCConv.cpp
Found by PVS-Studio. Fixes llvm.org/PR32480.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp
llvm/trunk/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll
Modified: llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp?rev=299258&r1=299257&r2=299258&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonEarlyIfConv.cpp Fri Mar 31 15:36:00 2017
@@ -546,7 +546,7 @@ bool HexagonEarlyIfConversion::isProfita
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: "
Modified: llvm/trunk/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll?rev=299258&r1=299257&r2=299258&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll (original)
+++ llvm/trunk/test/CodeGen/Hexagon/ifcvt-diamond-bug-2016-08-26.ll Fri Mar 31 15:36:00 2017
@@ -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 }
More information about the llvm-commits
mailing list