summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopSimplify/do-preheader-dbg.ll
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2019-06-19 10:28:48 +0000
committerJay Foad <jay.foad@gmail.com>2019-06-19 10:28:48 +0000
commit45d19fb470616851a1e2b15f247739c60902445c (patch)
treee2e1c188051774a1c6c3ea559915336c73f7283b /llvm/test/Transforms/LoopSimplify/do-preheader-dbg.ll
parent18737e81eb59a0f0f3898b161f39559dbba6bb79 (diff)
downloadbcm5719-llvm-45d19fb470616851a1e2b15f247739c60902445c.tar.gz
bcm5719-llvm-45d19fb470616851a1e2b15f247739c60902445c.zip
[ConstantFolding] Fix assertion failure on non-power-of-two vector load.
Summary: The test case does an (out of bounds) load from a global constant with type <3 x float>. InstSimplify tried to turn this into an integer load of the whole alloc size of the vector, which is 128 bits due to alignment padding, and then bitcast this to <3 x vector> which failed an assertion due to the type size mismatch. The fix is to do an integer load of the normal size of the vector, with no alignment padding. Reviewers: tpr, arsenm, majnemer, dstuttard Reviewed By: arsenm Subscribers: hfinkel, wdng, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63375 llvm-svn: 363784
Diffstat (limited to 'llvm/test/Transforms/LoopSimplify/do-preheader-dbg.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud