mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
[Hexagon] ENDLOOP is a non-reversible conditional branch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f90075825
commit
8b4c9e18bb
@ -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