[all-commits] [llvm/llvm-project] 27aea1: [TypePromotion] Don't treat bitcast as a Source

David Green via All-commits all-commits at lists.llvm.org
Mon Jun 5 06:42:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27aea17fe061f9778bb1e8ff5fdf9fc0fb03abe1
      https://github.com/llvm/llvm-project/commit/27aea17fe061f9778bb1e8ff5fdf9fc0fb03abe1
  Author: David Green <david.green at arm.com>
  Date:   2023-06-05 (Mon, 05 Jun 2023)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp
    M llvm/test/Transforms/TypePromotion/ARM/casts.ll

  Log Message:
  -----------
  [TypePromotion] Don't treat bitcast as a Source

This removes BitCasts from isSource in Type Promotion, as I don't believe they
need to be treated as Sources. They will usually be from floats or hoisted
constants, where constants will be handled already.

This fixes #62513, but didn't otherwise cause any differences in the tests I
ran.

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




More information about the All-commits mailing list