From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1474 invoked by alias); 14 Jun 2015 10:59:14 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 1451 invoked by uid 89); 14 Jun 2015 10:59:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.98.7 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mail-yk0-f177.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=AWoVMauxlcGrTh9Bu5WWDubbWK0ENjfUcEr+Elmnk64=; b=Nn4G2kLLlCKOSvAp2b7wGgRPAF+T2RC912GfIk1Z/pjicgZgY8du1kH2vtTFimr1zc 4NXnJWMyKufcIHbNEfVm/SJTlt4n1N9oSgcpxdPPRnO9RdDXFG/3Y6PLPxmOJcKDLpvE 5zl2ABfmmd4zmogX3SPuZE6fYDmre2eNAZFbspNWukqe+eUN1N7+FznUGjzmtFa9xqdN M2j0Ny4a542AeHIZ38KM7+jgToHeZvU2cy+QaAAs0uL+pfOczplZV3Z1AmR4C7ND7oDg Xjo9xCato2Te1bclETXIqzFdHoipuI1q+QDM3EbLsJAzf33ospWy5nM4E+W2+N5QPCTy aToQ== X-Gm-Message-State: ALoCoQkXH2xnGQ7RJhvy2KBvgkZC1owTPkHR2yjze2HgxwIQxLvlM+OU53oxa3pGsjHNwi5e6qTz MIME-Version: 1.0 X-Received: by 10.129.84.86 with SMTP id i83mr28463745ywb.77.1434279548604; Sun, 14 Jun 2015 03:59:08 -0700 (PDT) Date: Thu, 01 Jan 2015 00:00:00 -0000 Message-ID: Subject: How do I detect if a basic block is terminated or not? From: Dibyendu Majumdar To: jit@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-q2/txt/msg00053.txt.bz2 In my compiler I have a generic linking function that links current block to next block via an unconditional branch but if the current block is already terminated then it doesn't put the link. I cannot see a way to detect if the current block is already terminated. Regards Dibyendu