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:
parent
22fe5e2fec
commit
ec4b4310e8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user