mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 02:37:37 +00:00
[InstCombine] Use getDestAlignment in SimplifyMemSet (NFC)
Summary: Small NFC change to change the name of the function used getting and setting the alignment of a memset. llvm-svn: 324148
This commit is contained in:
parent
fae8788cfa
commit
38af2eed51
@ -265,8 +265,8 @@ Instruction *InstCombiner::SimplifyMemTransfer(MemIntrinsic *MI) {
|
||||
|
||||
Instruction *InstCombiner::SimplifyMemSet(MemSetInst *MI) {
|
||||
unsigned Alignment = getKnownAlignment(MI->getDest(), DL, MI, &AC, &DT);
|
||||
if (MI->getAlignment() < Alignment) {
|
||||
MI->setAlignment(Alignment);
|
||||
if (MI->getDestAlignment() < Alignment) {
|
||||
MI->setDestAlignment(Alignment);
|
||||
return MI;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user