[PATCH] D72204: AMDGPU/GlobalISel: Keep G_BITCAST out of waterfall loop

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 09:03:11 PST 2020


arsenm created this revision.
arsenm added reviewers: tstellar, nhaehnle, kerbowa.
Herald added subscribers: Petar.Avramovic, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
arsenm added a parent revision: D72203: AMDGPU/GlobalISel: Set insert point after 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.


https://reviews.llvm.org/D72204

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72204.236180.patch
Type: text/x-patch
Size: 17528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200104/210904de/attachment.bin>


More information about the llvm-commits mailing list