[PATCH] D94645: [AMDGPU] Fix llvm.amdgcn.init.exec and frame materialization
Ruiling, Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 22:11:11 PST 2021
ruiling added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:1916
+ // Update insertion point
+ if (!FirstMI)
+ FirstMI = &*MBB.begin();
----------------
In case the FirstMI is not null, which means a COPY instruction to copy from input register was not eliminated for some reason, we need to move the COPY instruction to the beginning of the block and insert exec initialization right after that. Because the frame-base materialization instructions may be inserted before the COPY instruction. We need to make sure the exec initialization always be inserted at the entry of the block.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94645/new/
https://reviews.llvm.org/D94645
More information about the llvm-commits
mailing list