[all-commits] [llvm/llvm-project] 4f5355: [PowerPC] Don't reuse an illegal typed load for in...

Sean Fertile via All-commits all-commits at lists.llvm.org
Tue Nov 24 12:48:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f5355ee73626f8b8fe6bf0dd6d167fea7628a2c
      https://github.com/llvm/llvm-project/commit/4f5355ee73626f8b8fe6bf0dd6d167fea7628a2c
  Author: Sean Fertile <sd.fertile at gmail.com>
  Date:   2020-11-24 (Tue, 24 Nov 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    A llvm/test/CodeGen/PowerPC/cvt_i64_to_fp.ll

  Log Message:
  -----------
  [PowerPC] Don't reuse an illegal typed load for int_to_fp conversion.

When the operand to an (s/u)int_to_fp node is an illegally typed load we
cannot reuse the load address since we can not build a proper dependancy
chain. The legalized loads will use a different chain output then the
illegal load. If we reuse the load address then we will build a
conversion node that uses the chain of the illegal load and operations
which modify the memory address in the other dependancy chain can be
scheduled before the floating point load which feeds the conversion.

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




More information about the All-commits mailing list