[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 23:25:50 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2a07221cf302: [SelectionDAG] Add an assert that the input VT and output VT for ISD::FREEZEā€¦ (authored by craig.topper).

Repository:
  rG LLVM Github Monorepo

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

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.253784.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200331/c87fafd0/attachment-0001.bin>


More information about the llvm-commits mailing list