[PATCH] D69932: [IR] Redefine Freeze instruction

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 23:46:39 PST 2019


aqjune marked an inline comment as done.
aqjune added a comment.

Previous patch: https://reviews.llvm.org/D29011



================
Comment at: llvm/include/llvm/IR/IRBuilder.h:2396
   Value *CreateFreeze(Value *V, const Twine &Name = "") {
-    return Insert(UnaryOperator::CreateFreeze(V, Name));
+    return Insert(new FreezeInst(V), Name);
   }
----------------
FreezeInst::Create is not used here because its argument needs no special check.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69932





More information about the llvm-commits mailing list