diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-10-21 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-10-21 00:00:00 +0000 |
| commit | a4dc92b483420e1975111c8e7a2c5dff49f13845 (patch) | |
| tree | c65e5ebf86fc57961f822b51435f93831315ce0d /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | f965120ad3dbe7d4d6b90a16cc7028eb6363b983 (diff) | |
| download | rust-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
