Analysis: Fix assertion when load alignment exceeds address space size
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 19 Jun 2023 22:03:33 +0000 (18:03 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Jun 2023 16:31:32 +0000 (12:31 -0400)
commitf3c9e5807fe91ef1f96d03e3a11e5971006d1efe
tree3252e398ab5012c197d0fd38c927ba6b56547ff9
parentdf52a22b1b7d912aeed8c79ecdb2e99f4189e4cb
Analysis: Fix assertion when load alignment exceeds address space size

Apparently the maximum alignment no longer fits in 32-bits now, which
overflows a 32-bit offset and would fail on the isPowerOf2 assert.
llvm/lib/Analysis/Loads.cpp
llvm/test/Transforms/ArgumentPromotion/load-alignment-value-overflows-addrspace-size.ll [new file with mode: 0644]