summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/CodeRegionGenerator.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <quentin.colombet@gmail.com>2019-05-03 01:23:56 +0000
committerQuentin Colombet <quentin.colombet@gmail.com>2019-05-03 01:23:56 +0000
commitc9256cc6ba93d8152d8d320e69fba05390e7676b (patch)
treeea610743a93e8b96d2c41fe5ab14fb9a52d21516 /llvm/tools/llvm-mca/CodeRegionGenerator.cpp
parent72383538485d2d399b988b14ce871b5326db7a69 (diff)
downloadbcm5719-llvm-c9256cc6ba93d8152d8d320e69fba05390e7676b.tar.gz
bcm5719-llvm-c9256cc6ba93d8152d8d320e69fba05390e7676b.zip
[IRTranslator] Use the alloc size instead of the store size when translating allocas
We use to incorrectly use the store size instead of the alloc size when creating the stack slot for allocas. On aarch64 this can be demonstrated by allocating weirdly sized types. For instance, in the added test case, we use an alloca for i19. We used to allocate a slot of size 24-bit (19 rounded up to the next byte), whereas we really want to use a full 32-bit slot for this type. llvm-svn: 359856
Diffstat (limited to 'llvm/tools/llvm-mca/CodeRegionGenerator.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud