[all-commits] [llvm/llvm-project] 7bf168: [BDCE] SExt -> ZExt when no sign bits is used and ...

dnsampaio via All-commits all-commits at lists.llvm.org
Fri Jul 10 00:35:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bf168390fd05460b1c0df3fa570758c6be718fd
      https://github.com/llvm/llvm-project/commit/7bf168390fd05460b1c0df3fa570758c6be718fd
  Author: Diogo Sampaio <diogo.sampaio at arm.com>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/BDCE.cpp
    M llvm/test/Transforms/BDCE/sext_multi_uses.ll

  Log Message:
  -----------
  [BDCE] SExt -> ZExt when no sign bits is used and instruction has multiple uses

Summary: This allows to convert any SExt to a ZExt when we know none of the extended bits are used, specially in cases where there are multiple uses of the value.

Reviewers: dmgreen, eli.friedman, spatel, lebedev.ri, nikic

Reviewed By: lebedev.ri, nikic

Subscribers: hiraditya, dmgreen, craig.topper, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60413




More information about the All-commits mailing list