[llvm] r320475 - [PowerPC] Add branch flag on asm parser-only branch instructions

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 04:33:09 PST 2017


Author: nemanjai
Date: Tue Dec 12 04:33:09 2017
New Revision: 320475

URL: http://llvm.org/viewvc/llvm-project?rev=320475&view=rev
Log:
[PowerPC] Add branch flag on asm parser-only branch instructions

This flag was missing but it wasn't an issue as nothing depended on it
for these asm parser-only instructions. Now that LLDB support is slowly
landing, it is important to get this right.
Committing on behalf of Leonardo Bianconi.

Differential revision: https://reviews.llvm.org/D40846

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=320475&r1=320474&r2=320475&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Tue Dec 12 04:33:09 2017
@@ -4336,7 +4336,7 @@ def RLWNMobm : PPCAsmPseudo<"rlwnm. $rA,
 
 // These generic branch instruction forms are used for the assembler parser only.
 // Defs and Uses are conservative, since we don't know the BO value.
-let PPC970_Unit = 7 in {
+let PPC970_Unit = 7, isBranch = 1 in {
   let Defs = [CTR], Uses = [CTR, RM] in {
     def gBC : BForm_3<16, 0, 0, (outs),
                       (ins u5imm:$bo, crbitrc:$bi, condbrtarget:$dst),




More information about the llvm-commits mailing list