[PATCH] D75790: [PowerPC] Fix compile time issue

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 18:46:31 PST 2020


MaskRay added inline comments.
Herald added a subscriber: wuzish.


================
Comment at: llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp:509
   // want to use the counter register if the loop contains calls.
+  std::set<const Value *> Visited;
   for (Loop::block_iterator I = L->block_begin(), IE = L->block_end();
----------------
How about `SmallPtrSet<const Value *, 4>` (or 4 -> another integer)?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75790/new/

https://reviews.llvm.org/D75790





More information about the llvm-commits mailing list