mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[Hexagon] ENDLOOP is a non-reversible conditional branch
llvm-svn: 232725
This commit is contained in:
parent
8eb5a04725
commit
7711e054b1
@ -1083,6 +1083,8 @@ SubsumesPredicate(const SmallVectorImpl<MachineOperand> &Pred1,
|
||||
//
|
||||
bool HexagonInstrInfo::
|
||||
ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const {
|
||||
if (!Cond.empty() && Cond[0].isMBB())
|
||||
return true;
|
||||
if (!Cond.empty() && Cond[0].isImm() && Cond[0].getImm() == 0) {
|
||||
Cond.erase(Cond.begin());
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user