ucb-bar / esp-llvm

UCB-BAR fork of LLVM! NOT UPSTREAM RISCV LLVM
Other
123 stars 55 forks source link

riscv: InsertBranch must insert 2-way jumps <-> TBB && FBB #17

Closed stettberger closed 8 years ago

stettberger commented 9 years ago

The InsertBranch utility function is not allowed to rely on the current MBB layout. Therefore unconditional jumps have to be inserted if FBB!=nullptr.

Should Fix #16

colinschmidt commented 8 years ago

Thanks for noticing this!

merging this into riscv-trunk as well