@JordanCheney This is almost a perfect pull request :) Take a look at the llvm `select` instruction which should make for cleaner code than the branches do.