commit adb3382f152a1c9ce2ffdad8238bdea13961df48
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Jun 17 15:00:12 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Fri Jun 17 15:00:12 2016 +0200

    [cc2-qbe] Fix basic block calculation
    
    ASCALLx opcodes are for parameters of the call,
    so they don't define a jump.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 5216f06..120e9bf 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -487,12 +487,6 @@ getbblocks(void)
                        i = pc->from1.u.sym->u.inst;
                        i->flags |= BBENTRY;
                case ASRET:
-               case ASCALLB:
-               case ASCALLH:
-               case ASCALLW:
-               case ASCALLS:
-               case ASCALLL:
-               case ASCALLD:
                case ASCALL:
                        if (pc->next)
                                pc->next->flags |= BBENTRY;

Reply via email to