From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2047.outbound.protection.outlook.com [40.107.7.47]) by sourceware.org (Postfix) with ESMTPS id A85553857036 for ; Thu, 9 Nov 2023 10:26:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A85553857036 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A85553857036 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.7.47 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1699525609; cv=pass; b=Ha3bIabCRQxPdTYVUj6ynlokPbLkuDCXYqHSeIaI6CV36Gd0T+f11pdC5mPdxA9mltywxJcmQHZ/S8CbEiJf1/A0FrvKD/uKgaNOqqAmJRDidhZIGilpRm5i1tT16+wNVkwZtbVZZq8aq/6sDwnmou090gJzTCCyrLs99XKxHCo= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1699525609; c=relaxed/simple; bh=MQLSFdUQciX2lv9Nx8hcz1YW5xJz88bW6O3m71JoXCw=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=IR9yuGiKlp3t3i2VGJYN3AvFIwtyUNsbnAwSmLQM9bvT2j+2uTZPLIXDNbohjSbrj7WAEO8rQ+mmViFou7fsRrgYzvT8j+Q2Cwj2p2XEp5r0g/fw8L25bLSMDHMXrSzeN37hwQowuLxEN0GVTdRuTV+GAbPwa5QWN4zQ7ijjoUk= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=P1NN9rRGhT5qs7TUVn9DnMtmDQbTtziOEDKIINvnRhU7jfGh5qiOAh99YqcRRqPvqzknjR7C/Gp0b/S/68nJRz1ziOBGsm/bEhAVZccu8DFRJqUG5t2yajZxRsMppQCkzfPlxsaC+Y+25oVtSVlzofN8nuLyyGaYP+SJ4Ov8wFpFVycsiphZca4ZYTkWwiWau5yOmNKOXzRzDK0KxTQM58pSve/wUR4gYw4UhJ/z+HddbXJ6wLQD//AggwMWIS/xidHX0NnfjlRtRkULf+RmNwxj3HfouBJco17PCC4m2W+jR4idpV26fWH6qUZGGjR8N/ihl1rNz125vvZADigkAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KSJiosoBQi4PUPyfG536gCgqzeo5rjWU5GZ95GgSQ6s=; b=nwzzP3UUHLZuSGmXzh2GquV7/272IK9lPWCUNzrlRTc1xTpuD96+5UtG72tWeGRkNTopHfNoxQ+c4YXj9Dr/wYh9G/g3RD2Xhl1ArTNmq0WVYrlQVpwnUPx4/RYUKnayPr6aTIxgPztW4kb8fFKgFV3v8ZIaZym3H9WHpBa3Dm1jJpymB/cBbn3UWhePxiHE12renin4zmbt/AL1PbN9rd3fHFKGrInfR96n60gwFKFpVb4ipJGY/rC5FiuW0BM9TkjQ339u8dPTRSLAcSojHmz7tLvLU2TQ0CRCDL+inSlWgkxdZ8I4auzYz6/rjTDmVTONPhO4gfJOez7KHTwfow== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KSJiosoBQi4PUPyfG536gCgqzeo5rjWU5GZ95GgSQ6s=; b=5SO8bLQc8t7yQ/MRJ0LHDfHZBccb++qKWZZZhomJKovyEdr+O4WtFXuhIdejpAGvBipRf2HcZeYW6EvYubAerxty8dlcY3x8ENyr7UF8gCT+6AMknxtwoQwUjj5/nN2HBwAw3c+Q0kzR1xBCmiu+mI4wnHb2qsLfLXNpkPrrEZg= Received: from AM6P193CA0098.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::39) by PAVPR08MB9138.eurprd08.prod.outlook.com (2603:10a6:102:30d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Thu, 9 Nov 2023 10:26:43 +0000 Received: from AM2PEPF0001C709.eurprd05.prod.outlook.com (2603:10a6:209:88:cafe::97) by AM6P193CA0098.outlook.office365.com (2603:10a6:209:88::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.19 via Frontend Transport; Thu, 9 Nov 2023 10:26:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM2PEPF0001C709.mail.protection.outlook.com (10.167.16.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.16 via Frontend Transport; Thu, 9 Nov 2023 10:26:43 +0000 Received: ("Tessian outbound 7671e7ddc218:v228"); Thu, 09 Nov 2023 10:26:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9d32d8e4e4af0d34 X-CR-MTA-TID: 64aa7808 Received: from 9f9c1683a13f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CF1975CC-BF6B-4C8A-92E1-2D34A2106426.1; Thu, 09 Nov 2023 10:26:36 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9f9c1683a13f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 09 Nov 2023 10:26:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z+OmTOtiIcPjM1gxyZCowqKTwRixl3xxPMz5KeItrNAsLoEkDJ9ojk3Ij5rirEkxrWOVTvrV5l4qImZXRKea+wG3K9VnB/QOxiGoC3H7cbOoY+kuE0wyQUEkLQR7LxDCmp/ucGG5TTvW/j9bxcaTmIQkiAQhRGEY2U6cr1CJxt288GVpjQLg9a4KMfLfzrqAYOmvPYAHaaRFjCMlDUM4yczIoNnD+vqPshzxVI9c+ZCguko4lMj/DiVKxZExfNZOq1HLNG+ZzhxohbnBUso41IEZgsUlWkrjKkKwmdEykVCiMiVgw+DIC3L9vM/Idrq5RvcCdmVrcCC7orXfHg9IVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KSJiosoBQi4PUPyfG536gCgqzeo5rjWU5GZ95GgSQ6s=; b=Tg2Hz5Fw2YbUCFY4DDmZImF5TpBe0coYVOTAL/sbqVLY6D4kIC5lk3RrIn1bvV1fVIulJLP1ylNpE+Cyifcv3hWQv1RkRCHuqcPZV7jWNJsddRKc0HxokuMiD2xknyoWr3eZCUkMedx6baTlIsLVmOi+u9xreN/zzW3ZXjo1J3NXBsP9g0fxgp0/P1cuTYrp+0xUpW3vG8j9vSBJgKhVySvfTQit7qdoCotSoNSkm6XhbmqNaGVHn5S3U7lavRBC05XajDAlstyTblDWo9XkzisgteOKVWtXaq89ouOQmlBRfqLYPnupC07B2gDageLd512eIN/XKrgweZ2jzR4hJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KSJiosoBQi4PUPyfG536gCgqzeo5rjWU5GZ95GgSQ6s=; b=5SO8bLQc8t7yQ/MRJ0LHDfHZBccb++qKWZZZhomJKovyEdr+O4WtFXuhIdejpAGvBipRf2HcZeYW6EvYubAerxty8dlcY3x8ENyr7UF8gCT+6AMknxtwoQwUjj5/nN2HBwAw3c+Q0kzR1xBCmiu+mI4wnHb2qsLfLXNpkPrrEZg= Received: from AM0PR08MB5316.eurprd08.prod.outlook.com (2603:10a6:208:185::14) by VI0PR08MB10539.eurprd08.prod.outlook.com (2603:10a6:800:208::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Thu, 9 Nov 2023 10:26:29 +0000 Received: from AM0PR08MB5316.eurprd08.prod.outlook.com ([fe80::d10c:d652:cb1a:41fb]) by AM0PR08MB5316.eurprd08.prod.outlook.com ([fe80::d10c:d652:cb1a:41fb%5]) with mapi id 15.20.6954.029; Thu, 9 Nov 2023 10:26:29 +0000 From: Tamar Christina To: Richard Biener CC: "gcc-patches@gcc.gnu.org" Subject: RE: [PATCH] tree-optimization/111950 - vectorizer loop copying Thread-Topic: [PATCH] tree-optimization/111950 - vectorizer loop copying Thread-Index: AQHaELMwEfH/nQCvNU6mnrIAyt2yeLBxtGkggAAHAwCAAA9nAA== Date: Thu, 9 Nov 2023 10:26:28 +0000 Message-ID: References: <33fb3bb3-9548-4867-95f6-f7319bde2270@AMS1EPF00000043.eurprd04.prod.outlook.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: AM0PR08MB5316:EE_|VI0PR08MB10539:EE_|AM2PEPF0001C709:EE_|PAVPR08MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 42392499-5a4c-4313-fcc8-08dbe10e5e6d x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 4EzKjRM3fBW59oHrGLzZnGZZ40Bq5rWFQEepsh/YSHTuONyIAfCt3bojxETZtqAwPaXtGNMMU4fBDf5V7QXv4Ubj4lKkFnCNDm9ISrRynY9jMisVxVvQk6rKgTgPnwcaEF6PB1kfvNZC/tMTm9YceuPpFSBedOCudPKtDgHG/YlYbCw/Gg3NJICyNPARefFaAENbgXPClL+8flbRo2LwEzKdAdShPabL8TS2t7nQfYcczVdI+7D0Qj2epf49PrlmS2OEqQb7RtRV+qaVKMzF6af4vVBRdxefkXet40bwnl3zYmCpUERmLp75gfGKDORR+kynTuGB2doe/8FB4lOq2e4BXtYLOIzxiXL/Z6opxJmOkDqxPUqCduT+HEKc2/ljNO6ACUIh2MzdeopAXrBGjER5Z6IULoVkUp52Kg85caAOYwgsyTPHFE0vBbzTXHWNYZjOhUeaNghzbP3xfqdOQTHneBzW6bw1NxMyaxgwu06WG9cXQM1Ud0E+6BbmUHVWHSL3BlT5u/Nn0H48rwbTfnoWPZoZWxgp4LVxRhbs9wYNFdBiN/tjtC2KepImTJLEPf2VVS6JVyG+nXQ67WwmYkT7Ns/zCFanRSBCtO6+SrA= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR08MB5316.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(366004)(396003)(136003)(346002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(122000001)(38070700009)(76116006)(66946007)(83380400001)(26005)(71200400001)(6506007)(7696005)(478600001)(66556008)(966005)(53546011)(38100700002)(9686003)(52536014)(5660300002)(2906002)(86362001)(41300700001)(33656002)(66476007)(6916009)(66446008)(64756008)(316002)(4326008)(8676002)(8936002)(55016003);DIR:OUT;SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10539 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C709.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1c7169bb-c4df-4793-7909-08dbe10e55de X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sYKUkUEJ+Efdz55ozvY3QLKaMlF6JGo+hfPE/Pti7QI7aIysN60+xue2F8YTv9lF+KhFGOeNkd+1Kci5Ey/AAXhr2RR2wU72nO19zb/fJmqR/7d+/s84gTDch1ucRn07mP1TpniHLhQ2/VBfZ3b1Tx8VVRaC4ZfpHRu6NT6IV1yhHvN2+etz5XAa4/WlUxr7gULojJa9OzeC7+gfiw9DcK4B1IrFScVSq3CGzn0GT91jc4sxFLCQ4HJAOBSh4SptSoVWMpaywbxxytNF2FmsX4L3VwNGT12ojy/8czHZMZDcRocBT+0K4fff0yuTf4jMbhyVLjgDlLYSygVnBlZsyB78o0IFZHqWHEgSCunFxjhj32uhKb9vgrOutF5GvRHAuRM92HKp5GHperllhE04Ilm/WlZFt9kilT+ruQCYkQ3eDZVtAVXETnkXY7YfpxVs2UnLMEyah4L2/SotcNxWGyf71IeryGVXiomFFoaELIpLWsUXoHOxOFC2QY1vWNyJg/PexyH+9BQpcvz1MxEc5m+CofNaLKi7tB8EWfVRJbI3Liju5qXnmqH4WypnDg0zWcPuMJxEcc94l9IQGtNIMKy/b4qCpfQyUzJwVLRFA9N/3d/NgnopYY6cJIRSO679v7ij2tpMEocutnvBh0psP3RBnjecNGbSWXtZOUqR/i+YJj50Qm6h95mWHUQWVfDiyuT59Q0/DLWb/f/seZicgggE04fxQFjDWr3nR/42YgSiy9LFHoFrgcz0sbiwIOa0zJaobBpgu5mfBFINMsqICw== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(136003)(396003)(346002)(376002)(230922051799003)(186009)(451199024)(64100799003)(1800799009)(82310400011)(46966006)(36840700001)(40470700004)(55016003)(356005)(36860700001)(7696005)(6506007)(53546011)(83380400001)(81166007)(47076005)(40480700001)(336012)(9686003)(82740400003)(41300700001)(86362001)(33656002)(966005)(52536014)(6862004)(8676002)(8936002)(4326008)(5660300002)(2906002)(70586007)(316002)(70206006)(26005)(40460700003)(478600001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2023 10:26:43.2647 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42392499-5a4c-4313-fcc8-08dbe10e5e6d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C709.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9138 X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > -----Original Message----- > From: Richard Biener > Sent: Thursday, November 9, 2023 9:24 AM > To: Tamar Christina > Cc: gcc-patches@gcc.gnu.org > Subject: RE: [PATCH] tree-optimization/111950 - vectorizer loop copying >=20 > On Thu, 9 Nov 2023, Tamar Christina wrote: >=20 > > > guard_bb =3D LOOP_VINFO_IV_EXIT (loop_vinfo)->dest; > > > edge epilog_e =3D LOOP_VINFO_EPILOGUE_IV_EXIT (loop_vinfo); > > > - guard_to =3D split_edge (epilog_e); > > > + guard_to =3D epilog_e->dest; > > > guard_e =3D slpeel_add_loop_guard (guard_bb, guard_cond, guard_to= , > > > skip_vector ? anchor : guard_bb, > > > prob_epilog.invert (), > > > @@ -3443,8 +3229,30 @@ vect_do_peeling (loop_vec_info loop_vinfo, > > > tree niters, tree nitersm1, > > > if (vect_epilogues) > > > epilogue_vinfo->skip_this_loop_edge =3D guard_e; > > > edge main_iv =3D LOOP_VINFO_IV_EXIT (loop_vinfo); > > > - slpeel_update_phi_nodes_for_guard2 (loop, epilog, main_iv, > > > guard_e, > > > - epilog_e); > > > + gphi_iterator gsi2 =3D gsi_start_phis (main_iv->dest); > > > + for (gphi_iterator gsi =3D gsi_start_phis (guard_to); > > > + !gsi_end_p (gsi); gsi_next (&gsi)) > > > + { > > > + /* We are expecting all of the PHIs we have on epilog_e > > > + to be also on the main loop exit. But sometimes > > > + a stray virtual definition can appear at epilog_e > > > + which we can then take as the same on all exits, > > > + we've removed the LC SSA PHI on the main exit before > > > + so we wouldn't need to create a loop PHI for it. */ > > > + if (virtual_operand_p (gimple_phi_result (*gsi)) > > > + && (gsi_end_p (gsi2) > > > + || !virtual_operand_p (gimple_phi_result (*gsi2)))) > > > + add_phi_arg (*gsi, > > > + gimple_phi_arg_def_from_edge (*gsi, epilog_e), > > > + guard_e, UNKNOWN_LOCATION); > > > + else > > > + { > > > + add_phi_arg (*gsi, gimple_phi_result (*gsi2), guard_e, > > > + UNKNOWN_LOCATION); > > > + gsi_next (&gsi2); > > > + } > > > + } > > > + > > > > I've been having some trouble incorporating this change into the early = break > work. > > My understanding is that here you've removed the lookup that > > find_guard did and are assuming that the order between the PHI nodes > > between loop->exit and epilog->exit are the same - sporadic virtual > operands. > > > > But the loop->exit for early break has to materialize all PHI nodes > > from the main loop into the epilog loop since we need them to restart t= he > scalar loop iteration. > > > > This means that the number of PHI nodes between the first loop and the > > second Loop are not the same, so we end up mis-linking phi nodes. > > i.e. consider this loop > > > > https://gist.github.com/Mistuke/65d476b18f991772fdec159a09b81869 >=20 > I don't see any multi-exits here? I think you need exactly the same PHIs= you > need for the branch to the epilogue, no? >=20 Ah it's a failing testcase but not one with an early break, > If you can point me to a testcase that fails on your branch I can try to = have a > look. I've updated the branch refs/users/tnfchris/heads/gcc-14-early-break Quite a few tests fail, a simple one is vect-early-break_5.c and vect-early= -break_20.c But what you just said above makes me wonder.. at the moment before we have differening amount because we require to have the loop counters and IVs as = PHI nodes such that vect_update_ivs_after_vectorizer can thread them through correctl= y as it searches for PHI nodes. However for the epilog exit, those that are not li= ve are not needed. This is why we get different counts. Maybe.. the solution is that I need to do the same thing as vectorizable_li= ve_operations In that when vect_update_ivs_after_vectorizer is done I should either remov= e the PHI nodes or turn them into simple assignments. Since they're always single va= lue. Looking at a few examples that seems like it would fix the issue.. Does tha= t sound right to you? Regards, Tamar >=20 > > which now goes wrong (throw that in a dotgraph viewer). > > > > I'm struggling to figure out how to handle this without doing a lookup. > > > > Any advice? > > > > Thanks, > > Tamar > > > > > > > /* Only need to handle basic block before epilog loop if it's not > > > the guard_bb, which is the case when skip_vector is true. */ > > > if (guard_bb !=3D bb_before_epilog) > > > -- > > > 2.35.3 > > >=20 > -- > Richard Biener > SUSE Software Solutions Germany GmbH, > Frankenstrasse 146, 90461 Nuernberg, Germany; > GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG > Nuernberg)