diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-13 19:42:09 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-13 19:42:09 +0000 |
commit | be95b4afc6d073677858f0751b74ab8917f5ae34 (patch) | |
tree | d1d4f3314b3a340ee8339225369aecc70c3e5603 /llvm/lib/IR/Module.cpp | |
parent | 07ff9b03f6bf750e491cdde73f943a65f58f0d80 (diff) | |
download | llvm-be95b4afc6d073677858f0751b74ab8917f5ae34.zip llvm-be95b4afc6d073677858f0751b74ab8917f5ae34.tar.gz llvm-be95b4afc6d073677858f0751b74ab8917f5ae34.tar.bz2 |
instcombine: alloca: Canonicalize scalar allocation array size
As a follow-up to r232200, add an `-instcombine` to canonicalize scalar
allocations to `i32 1`. Since r232200, `iX 1` (for X != 32) are only
created by RAUWs, so this shouldn't fire too often. Nevertheless, it's
a cheap check and a nice cleanup.
llvm-svn: 232202
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions