aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-02-08 17:14:41 +0100
committerNikita Popov <npopov@redhat.com>2022-02-08 17:16:15 +0100
commit074561a4a22f610d756109170285d8626c4cc3bc (patch)
treec6620fa820e2b2ea335f04cc5711bde4f8a98e84 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parent8b2ca766f0e58a2a094a4dffbf5b035d584ef475 (diff)
downloadllvm-074561a4a22f610d756109170285d8626c4cc3bc.zip
llvm-074561a4a22f610d756109170285d8626c4cc3bc.tar.gz
llvm-074561a4a22f610d756109170285d8626c4cc3bc.tar.bz2
[Mem2Reg] Check that load type matches alloca type
Alloca promotion can only deal with cases where the load/store types match the alloca type (it explicitly does not support bitcasted load/stores). With opaque pointers this is no longer enforced through the pointer type, so add an explicit check.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions