aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2015-04-18 17:57:41 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2015-04-18 17:57:41 +0000
commit7216ccc3f34a97ea07354fe0bb61b782d5f1be18 (patch)
tree14f91a7b3c43c9501d83c7a67f6c92b6770975cd /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent2a7404a9070edd7cfe877eedbc0f4b1a552e9a74 (diff)
downloadllvm-7216ccc3f34a97ea07354fe0bb61b782d5f1be18.zip
llvm-7216ccc3f34a97ea07354fe0bb61b782d5f1be18.tar.gz
llvm-7216ccc3f34a97ea07354fe0bb61b782d5f1be18.tar.bz2
[MemCpyOpt] Promote both memset/memcpy sizes if differently typed.
Followup to r235232, which caused PR23278. We can't assume the memset and memcpy sizes have the same type, as nothing in the language reference prevents that. Instead, zext both to i64 if they disagree. While there, robustify tests by using i8 %c rather than i8 0 for the memset character. llvm-svn: 235258
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions