[PATCH] D103661: [IR] Add utility to convert constant expression operands (of an instruction) to instructions.

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 14:49:06 PDT 2021


rampitec added inline comments.


================
Comment at: llvm/lib/IR/ReplaceConstant.cpp:130
+      SmallVector<Value *, 8> Stack;
+      SmallPtrSet<Value *, 8> Visited;
+
----------------
I think Visited is not needed. There can be no recursive CE.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103661



More information about the llvm-commits mailing list