[PATCH] D77092: [SelectionDAG] Add an assert that the input VT and output VT for ISD::FREEZE are the same.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 30 14:11:41 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: aqjune, spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77092

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -4550,6 +4550,9 @@
 
   unsigned OpOpcode = Operand.getNode()->getOpcode();
   switch (Opcode) {
+  case ISD::FREEZE:
+    assert(VT == Operand.getValueType() && "Unexpected VT!");
+    break;
   case ISD::TokenFactor:
   case ISD::MERGE_VALUES:
   case ISD::CONCAT_VECTORS:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77092.253697.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200330/788e62f2/attachment-0001.bin>


More information about the llvm-commits mailing list