1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[Hexagon] Fix a condition in HexagonEarlyIfConv.cpp

This fixes llvm.org/PR32265.

llvm-svn: 297745
This commit is contained in:
Krzysztof Parzyszek 2017-03-14 15:21:33 +00:00
parent 22fe5e2fec
commit ec4b4310e8

View File

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