[PATCH] D79792: [AMDGPU] New SIInsertHardClauses pass
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 09:44:27 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp:123-131
+ BuildMI(MBB, First, DebugLoc(), TII->get(TargetOpcode::BUNDLE));
+ auto ClauseMI = BuildMI(MBB, First, DebugLoc(), TII->get(AMDGPU::S_CLAUSE))
+ .addImm(CI.Length - 1);
+ for (auto I = ClauseMI->getIterator(),
+ E = std::next(CI.Last->getIterator());
+ I != E; I++)
+ I->bundleWithPred();
----------------
arsenm wrote:
> You didn't finalize the bundle, so the register operands on the BUNDLE are missing
Could also use MIBundleBuilder
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79792/new/
https://reviews.llvm.org/D79792
More information about the llvm-commits
mailing list