[PATCH] D31350: AMDGPU : Fix common dominator of two incoming blocks terminates with uniform branch issue.
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 11:38:42 PDT 2017
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/SIFixSGPRCopies.cpp:344
+
+ Visited.insert(mbb);
+ if (hasTerminatorThatModifiesExec(*mbb, *TRI))
----------------
wdng wrote:
> rampitec wrote:
> > If you use Visited.insert(mbb).second it is one search in the set instead of two.
> Looks like this is not correct. We need to check whether this node has visited before, then add into Visited if not found instead of inserting first and then search, correct?
http://llvm.org/docs/doxygen/html/DenseMap_8h_source.html#l00169
Repository:
rL LLVM
https://reviews.llvm.org/D31350
More information about the llvm-commits
mailing list