llvm::ConstantFoldTerminator function can convert SwitchInst with single case (and default) to a conditional BranchInst. This patch adds support to preserve make.implicit metadata on this conversion.
Details
Details
Diff Detail
Diff Detail
Differential D11841
[ConstantFoldTerminator] Preserve make.implicit metadata when converting SwitchInst to BranchInst • chenli on Aug 7 2015, 11:09 AM. Authored by
Details llvm::ConstantFoldTerminator function can convert SwitchInst with single case (and default) to a conditional BranchInst. This patch adds support to preserve make.implicit metadata on this conversion.
Diff Detail |
LGTM.
just nitpick: the comment needs period.