[PATCH] D40113: AMDGPU: Fix crash when scheduling DBG_VALUE
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 16:56:58 PST 2017
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/GCNSchedStrategy.cpp:333
Unsched.reserve(NumRegionInstrs);
- for (auto &I : *this)
- Unsched.push_back(&I);
+ for (auto &I : *this) {
+ if (!I.isDebugValue())
----------------
I am afraid this will push RegionBegin iterator. Maybe you need to skip a debug value in the loop at line 389 instead.
https://reviews.llvm.org/D40113
More information about the llvm-commits
mailing list