about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-21 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-21 00:00:00 +0000
commita4dc92b483420e1975111c8e7a2c5dff49f13845 (patch)
treec65e5ebf86fc57961f822b51435f93831315ce0d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf965120ad3dbe7d4d6b90a16cc7028eb6363b983 (diff)
downloadrust-a4dc92b483420e1975111c8e7a2c5dff49f13845.tar.gz
rust-a4dc92b483420e1975111c8e7a2c5dff49f13845.zip
Introduce a temporary for discriminant value in MatchBranchSimplification
The optimization introduces additional uses of the discriminant operand, but
does not ensure that it is still valid to evaluate it or that it still
evaluates to the same value.

Evaluate it once at original position, and store the result in a new temporary.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions