diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-08-18 22:48:12 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-08-18 22:48:12 +0000 |
commit | 5c55fbc5eafabf012ddb29bbbab230dc045a1812 (patch) | |
tree | 02be4d1b424f522a45cbf6c6f080714d98f50061 /llvm/lib/CodeGen/MIRParser/MIParser.cpp | |
parent | 10bc1a4e833c31d88c4724178f269e21ff1eab12 (diff) | |
download | bcm5719-llvm-5c55fbc5eafabf012ddb29bbbab230dc045a1812.tar.gz bcm5719-llvm-5c55fbc5eafabf012ddb29bbbab230dc045a1812.zip |
use TLI.allowsMemoryAccess() to check if memory accesses are fast; NFCI
This consolidates use of isUnalignedMem32Slow() in one place.
There is a slight change in logic although I'm not sure that it would ever
come up in the real world: we were assuming that an alignment of the type
size is always fast; now, we actually check the data layout to confirm that.
llvm-svn: 245382
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
0 files changed, 0 insertions, 0 deletions