Skip to content
Commit 3e8aa65b authored by Chandler Carruth's avatar Chandler Carruth
Browse files

Add a routine to swap branch instruction operands, and update any

profile metadata at the same time. Use it to preserve metadata attached
to a branch when re-writing it in InstCombine.

Add metadata to the canonicalize_branch InstCombine test, and check that
it is tranformed correctly.

Reviewed by Nick Lewycky!

llvm-svn: 142168
parent 00ab3ae7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment