Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 702396c

Browse files
author
Krzysztof Parzyszek
committed
[Hexagon] Fix a condition in HexagonEarlyIfConv.cpp
This fixes llvm.org/PR32265. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297745 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent c412df4 commit 702396c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/Hexagon/HexagonEarlyIfConv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ unsigned HexagonEarlyIfConversion::computePhiCost(const MachineBasicBlock *B,
482482
const MachineOperand &RB = MI.getOperand(3);
483483
assert(RA.isReg() && RB.isReg());
484484
// Must have a MUX if the phi uses a subregister.
485-
if (RA.getSubReg() != 0 || RA.getSubReg() != 0) {
485+
if (RA.getSubReg() != 0 || RB.getSubReg() != 0) {
486486
Cost++;
487487
continue;
488488
}

0 commit comments

Comments
 (0)