about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2014-09-04 13:36:39 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2015-02-04 20:06:17 +0100
commitdb8f2d590385786c176b5f7d9e887814d31db9ad (patch)
tree586849a7359a13d49397dcf4ba56baf8808abda5 /src/rustllvm/ExecutionEngineWrapper.cpp
parentac134f7ca435551964996ee88319241cd3c7c110 (diff)
downloadrust-db8f2d590385786c176b5f7d9e887814d31db9ad.tar.gz
rust-db8f2d590385786c176b5f7d9e887814d31db9ad.zip
Avoid unnecessary codegen in with_cond()
Currently "k / 2" generates one (k: uint) or two (k: int) "br false,
..." instructions and the corresponding basic blocks, producing quite
some noise and making the code unnecessarily hard to read.

Additionally we can skip translation if the code would end up
unreachable anyway.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions