[PATCH] D29011: [IR] Add Freeze instruction
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 01:33:53 PDT 2019
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Thanks, LG.
Anyone else has any comments here?
================
Comment at: include/llvm/IR/PatternMatch.h:830-834
+ auto *I = dyn_cast<UnaryOperator>(V);
+ if (!I) return false;
+
+ if (I->getOpcode() == Instruction::Freeze)
+ return X.match(I->getOperand(0));
----------------
Let's use `FreezeOperator` here then?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D29011/new/
https://reviews.llvm.org/D29011
More information about the llvm-commits
mailing list