[PATCH] D84598: [JumpThreading] Add a basic support for freeze instruction

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 12:33:08 PDT 2020


efriedma added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:698
+    Value *Source = FI->getOperand(0);
+    if (!isa<PHINode>(Source) && !isa<CmpInst>(Source))
+      return false;
----------------
Do we want to handle a freeze of a cast, or vice versa?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84598





More information about the llvm-commits mailing list