[PATCH] D153308: Analysis: Fix assertion when load alignment exceeds address space size

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 19 15:57:41 PDT 2023


arsenm created this revision.
arsenm added reviewers: gchatelet, aeubanks, hans, rnk, jdoerfert, craig.topper.
Herald added a subscriber: hiraditya.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Apparently the maximum alignment no longer fits in 32-bits now, which
overflows a 32-bit offset and would fail on the isPowerOf2 assert.


https://reviews.llvm.org/D153308

Files:
  llvm/lib/Analysis/Loads.cpp
  llvm/test/Transforms/ArgumentPromotion/load-alignment-value-overflows-addrspace-size.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153308.532761.patch
Type: text/x-patch
Size: 5850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230619/7386e093/attachment.bin>


More information about the llvm-commits mailing list