diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-08 03:37:16 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-08 03:37:16 +0000 |
| commit | 3ce5e887aef457701da95f1c6ccbd58ec3d32fe4 (patch) | |
| tree | 592c2926477b5415711d09dfc46c64982e3bb4f0 /lib/Transforms/Scalar/InstructionCombining.cpp | |
| parent | ff9dcee534bf8108dd7b6a77f45db8f17e4125c6 (diff) | |
Introduce a new MemTransferInst pseudo class, which is a common
parent between MemCpyInst and MemMoveInst, simplify some code to
use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
| -rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 86f3256a6e..09722d9c49 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -9464,7 +9464,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { // If we can determine a pointer alignment that is bigger than currently // set, update the alignment. - if (isa<MemCpyInst>(MI) || isa<MemMoveInst>(MI)) { + if (isa<MemTransferInst>(MI)) { if (Instruction *I = SimplifyMemTransfer(MI)) return I; } else if (MemSetInst *MSI = dyn_cast<MemSetInst>(MI)) { |
