[all-commits] [llvm/llvm-project] bb562d: AMDGPU/GlobalISel: Keep G_BITCAST out of waterfall...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jan 22 08:16:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bb562d1af0e9f959eceb8b41cc5530202d55731a
      https://github.com/llvm/llvm-project/commit/bb562d1af0e9f959eceb8b41cc5530202d55731a
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-01-22 (Wed, 22 Jan 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-insert-vector-elt.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Keep G_BITCAST out of waterfall loop

The waterfall utility function blindly inserts a phi for every def in
the loop. We don't need this one to be preserved for every
iteration. Saves an extra phi and copy inside the loop body.




More information about the All-commits mailing list