about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-14 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-14 00:00:00 +0000
commit69032733392c57e02d6d7167c76006d46c748b5f (patch)
tree5fa47242481799be8244b34a16130119d664ed73 /compiler/rustc_codegen_llvm/src
parent30e49a9ead550551e879af64ba91a0316da1c422 (diff)
downloadrust-69032733392c57e02d6d7167c76006d46c748b5f.tar.gz
rust-69032733392c57e02d6d7167c76006d46c748b5f.zip
Lower intrinsics calls: forget, size_of, unreachable, wrapping_*
This allows constant propagation to evaluate `size_of` and `wrapping_*`,
and unreachable propagation to propagate a call to `unreachable`.

The lowering is performed as a MIR optimization, rather than during MIR
building to preserve the special status of intrinsics with respect to
unsafety checks and promotion.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions