[PATCH] D148306: remove useless condition in assert in SelectionDAG.cpp

Wang, Xin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 00:27:28 PDT 2023


XinWang10 created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
XinWang10 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148306

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
@@ -7952,8 +7952,7 @@
   assert((Opcode == ISD::INTRINSIC_VOID ||
           Opcode == ISD::INTRINSIC_W_CHAIN ||
           Opcode == ISD::PREFETCH ||
-          ((int)Opcode <= std::numeric_limits<int>::max() &&
-           (int)Opcode >= ISD::FIRST_TARGET_MEMORY_OPCODE)) &&
+           (int)Opcode >= ISD::FIRST_TARGET_MEMORY_OPCODE) &&
          "Opcode is not a memory-accessing opcode!");
 
   // Memoize the node unless it returns a flag.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148306.513460.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/00726c66/attachment.bin>


More information about the llvm-commits mailing list