[all-commits] [llvm/llvm-project] 16e4e4: [CodeGenPrep] Handle constants in ConvertPhiType

David Green via All-commits all-commits at lists.llvm.org
Thu Oct 13 08:42:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16e4e4ab878aa148f0a4a56540c96a1725a960a2
      https://github.com/llvm/llvm-project/commit/16e4e4ab878aa148f0a4a56540c96a1725a960a2
  Author: David Green <david.green at arm.com>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/test/CodeGen/AArch64/convertphitype.ll

  Log Message:
  -----------
  [CodeGenPrep] Handle constants in ConvertPhiType

This is a simple addition to the convertPhiTypes in CodeGenPrepare to
consider and convert constants as it converts the phi type. Someone
fixed the bug in the motivating example, so the undef is now a constant
0. This does mean converting between integer and floating point
constants, which may have different materialization.

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




More information about the All-commits mailing list