mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[Hexagon] Disable expanding MUX instructions that define a subregister
The code in HexagonExpandCondsets.cpp does not handle those cases at the moment. llvm-svn: 271281
This commit is contained in:
parent
d2aa4f959e
commit
4090309289
@ -991,6 +991,11 @@ bool HexagonExpandCondsets::predicate(MachineInstr *TfrI, bool Cond) {
|
||||
// some registers, which would complicate the transformation considerably.
|
||||
if (!MS.isKill())
|
||||
return false;
|
||||
// Avoid predicating instructions that define a subregister. The code
|
||||
// does not handle correctly cases where both subregisters of a register
|
||||
// are defined by a condset.
|
||||
if (MD.getSubReg())
|
||||
return false;
|
||||
|
||||
RegisterRef RT(MS);
|
||||
unsigned PredR = MP.getReg();
|
||||
|
Loading…
Reference in New Issue
Block a user