[PATCH] D80007: [AMDGPU] Fix assertion failure in SIInsertHardClauses
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 07:34:03 PDT 2020
arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp:115-116
+ // end.
+ unsigned Size =
+ std::distance(CI.First->getIterator(), CI.Last->getIterator()) + 1;
+ if (Size < 2)
----------------
Seems like we should be able to avoid rescanning through all the instructions though
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80007/new/
https://reviews.llvm.org/D80007
More information about the llvm-commits
mailing list