[PATCH] D135561: [CodeGenPrep] Handle contants in ConvertPhiType

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 01:17:09 PDT 2022


dmgreen created this revision.
dmgreen added reviewers: efriedma, nikic, spatel, RKSimon.
Herald added a subscriber: hiraditya.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D135561

Files:
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/test/CodeGen/AArch64/convertphitype.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135561.466446.patch
Type: text/x-patch
Size: 4982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221010/fba59ca2/attachment-0001.bin>


More information about the llvm-commits mailing list