diff options
author | Chen Li <meloli87@gmail.com> | 2015-08-05 21:13:26 +0000 |
---|---|---|
committer | Chen Li <meloli87@gmail.com> | 2015-08-05 21:13:26 +0000 |
commit | 50efd9220a0a2be9a980e45a3096c6e5dd5c0ac8 (patch) | |
tree | c7ad545a40a03e51885fb0d9132d38160732fb09 /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | 53645350e20113ee26e9a400e92788c5d131c0bf (diff) | |
download | llvm-50efd9220a0a2be9a980e45a3096c6e5dd5c0ac8.zip llvm-50efd9220a0a2be9a980e45a3096c6e5dd5c0ac8.tar.gz llvm-50efd9220a0a2be9a980e45a3096c6e5dd5c0ac8.tar.bz2 |
[LoopUnswitch] Preserve make.implicit metadata for unswitched conditions
Summary: This patch adds support to preserve make.implicit metadata for unswitched conditions in loop pre-header.
Reviewers: sanjoy, weimingz
Subscribers: mcrosier, llvm-commits
Differential Revision: http://reviews.llvm.org/D11769
llvm-svn: 244132
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 934e161..2b29fda 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -657,6 +657,7 @@ static void copyMetadata(Instruction *DstInst, const Instruction *SrcInst, } } // fallthrough. + case LLVMContext::MD_make_implicit: case LLVMContext::MD_dbg: DstInst->setMetadata(MD.first, MD.second); } |