[PATCH] D148306: remove useless condition in assert in SelectionDAG.cpp
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 17 00:50:57 PDT 2023
skan added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:7955
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!");
----------------
Should we use `Opcode <= (unsigned)std::numeric_limits<int>::max()`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148306/new/
https://reviews.llvm.org/D148306
More information about the llvm-commits
mailing list