Skip to content

Commit

Permalink
[Hexagon] Fix a condition in HexagonEarlyIfConv.cpp
Browse files Browse the repository at this point in the history
This fixes llvm.org/PR32265.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297745 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Krzysztof Parzyszek committed Mar 14, 2017
1 parent c412df4 commit 702396c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/Hexagon/HexagonEarlyIfConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ unsigned HexagonEarlyIfConversion::computePhiCost(const MachineBasicBlock *B,
const MachineOperand &RB = MI.getOperand(3);
assert(RA.isReg() && RB.isReg());
// Must have a MUX if the phi uses a subregister.
if (RA.getSubReg() != 0 || RA.getSubReg() != 0) {
if (RA.getSubReg() != 0 || RB.getSubReg() != 0) {
Cost++;
continue;
}
Expand Down

0 comments on commit 702396c

Please sign in to comment.