From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by sourceware.org (Postfix) with ESMTPS id 11BA23858426 for ; Sun, 19 Sep 2021 05:56:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 11BA23858426 Received: by mail-qv1-xf31.google.com with SMTP id w9so9141026qvs.12 for ; Sat, 18 Sep 2021 22:56:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=4dOGIlJYbdMnz/xqWXVz/utvdtGrQAPFhMbpc2OgSJ8=; b=dJD8Nvf0R/R1zk5E9lI5+kZjJqufl4D5TsgsRwzmBpplG/LcFtnyjqPQE8ux+1Jrxr AUMUaUj7bOjQl7/dpzyRVLZx9pLyJBAW7WzxMMZecQlMaRZjgCuzbU5KhrDLCGahKarF jZbJt/eL2gWmPG4kVtZeyuk2kB/tyaDj/eelKHmFYSvS2vLKLnvXO3ZbD96uV2AGqdEZ MhmxTvitdqALPA/JCJHroXgLPcpLekPMqVWDFPnPvbAWMnO/Y+hw/5tRre2eM1j2c/kp mfnRUqzwyKizxoR531acB/3JgR8I8DhMxNqP5cFNqryNhhIWfZ2SKf4X7kfTKU8G24N9 ELew== X-Gm-Message-State: AOAM532/AA95s6v1Ubm2qZARdt5FULI1VLcxPHzgOkjpQfa8nHqbx9Aa Rn3fkirltU/+FUdc8oEfWr9TwLLt6MA= X-Google-Smtp-Source: ABdhPJxvAmG+vDaHdwivy7eaOL1ksbVJlXeT+HJxs8N2WlDf92Ja0i6+c+UpHKfpMxc0bRZDircpKQ== X-Received: by 2002:ad4:456c:: with SMTP id o12mr19472240qvu.12.1632030987478; Sat, 18 Sep 2021 22:56:27 -0700 (PDT) Received: from [172.31.0.175] (c-98-202-48-222.hsd1.ut.comcast.net. [98.202.48.222]) by smtp.gmail.com with ESMTPSA id c7sm7070881qtv.9.2021.09.18.22.56.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Sep 2021 22:56:27 -0700 (PDT) Subject: Re: [PATCH 2/2] Fix 101805: Simplify min/max of boolean arguments To: apinski@marvell.com, gcc-patches@gcc.gnu.org References: <1628900361-27676-1-git-send-email-apinski@marvell.com> <1628900361-27676-2-git-send-email-apinski@marvell.com> From: Jeff Law Message-ID: Date: Sat, 18 Sep 2021 23:56:24 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <1628900361-27676-2-git-send-email-apinski@marvell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2021 05:56:30 -0000 On 8/13/2021 6:19 PM, apinski--- via Gcc-patches wrote: > From: Andrew Pinski > > I noticed this while Richard B. fixing PR101756. > Basically min of two bools is the same as doing an "and" > and max of two bools is doing an "ior". > > gcc/ChangeLog: > > * match.pd: Add min/max patterns for bool types. > > gcc/testsuite/ChangeLog: > > * gcc.dg/tree-ssa/bool-12.c: New test. OK jeff