AMDGPU: Remove kills following clusters of memory instruction
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 14 Feb 2021 14:54:25 +0000 (09:54 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 16 Feb 2021 15:49:28 +0000 (10:49 -0500)
commita7455d7b7ce33bb4d04106e26f242e6cb24f3042
tree190eacfb69a7ca5561ebc498347ba9735e23d2d8
parent5dfba562dd247f731528448ee83785b099f93629
AMDGPU: Remove kills following clusters of memory instruction

In a future commit, soft clauses will be hinted with kill instructions
rather than forced together with bundles. Look for kills that look
like this, and erase them. I'm not sure if the check for specific uses
is worthwhile, or if it would be better to just unconditionally erase
kills.

This reduces test churn in a future patch.
llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
llvm/test/CodeGen/AMDGPU/postra-bundle-memops.mir