[PATCH] D111661: [FuncSpec] Only visit uses of the instruction instead of every constant use.

Chuanqi Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 13 03:49:31 PDT 2021


ChuanqiXu added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/FunctionSpecialization.cpp:304
         isConstant(IV) ? Solver.getConstant(IV) : UndefValue::get(V->getType());
     V->replaceAllUsesWith(Const);
 
----------------
It looks like this line should be included.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111661



More information about the llvm-commits mailing list