[PATCH] D124085: [CodeGen] Fix assertion failure on large types store

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 23 03:50:50 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:7463
+  if (HalfValBitSize > IntegerType::MAX_INT_BITS)
+    return false;
+
----------------
Isn't this hard-coded to unsigned/uint32_t? What about exposing a typedef in SDNode instead so we can use std::numeric_limits? .


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124085



More information about the llvm-commits mailing list