aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-06-11 18:25:44 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-06-11 18:25:44 +0000
commitea20199b486b6a1a2e18ef305ead480b13e4c067 (patch)
tree51a81b7ccdf597ce0612124b35effadf436bccba /llvm/lib/Object/IRObjectFile.cpp
parentff75f3dd6c3bd7a51839765d2f1f4e427888dfa4 (diff)
downloadllvm-ea20199b486b6a1a2e18ef305ead480b13e4c067.zip
llvm-ea20199b486b6a1a2e18ef305ead480b13e4c067.tar.gz
llvm-ea20199b486b6a1a2e18ef305ead480b13e4c067.tar.bz2
[LoopUnroll] Use IRBuilder to create branch instructions.
Use IRBuilder::Create(Cond)?Br instead of constructing instructions manually with BranchInst::Create(). It's consistent with other uses of IRBuilder in this pass, and has an additional important benefit: Using IRBuilder will ensure that new branch instruction will get the same debug location as original terminator instruction it will eventually replace. For now I'm not adding a testcase, as currently original terminator instruction also lack debug location due to missing debug location propagation in BasicBlock::splitBasicBlock. That is, the testcase will accompany the fix for the latter I'm going to mail soon. llvm-svn: 239550
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions