about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-24 22:39:55 +0200
committerGitHub <noreply@github.com>2020-10-24 22:39:55 +0200
commit597b4c5bb40e2c1e55cbd0aec2cf258ec8de6b70 (patch)
tree115592d694b544b41e9e15ee77f636c92e4de39c /compiler/rustc_llvm/llvm-wrapper
parente3808edeeea28c137129c0c5bf70c24562e794f5 (diff)
parenta4dc92b483420e1975111c8e7a2c5dff49f13845 (diff)
downloadrust-597b4c5bb40e2c1e55cbd0aec2cf258ec8de6b70.tar.gz
rust-597b4c5bb40e2c1e55cbd0aec2cf258ec8de6b70.zip
Rollup merge of #78191 - tmiasko:temp-match-branch-simplification, r=oli-obk
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.

Follow up on #78151. The optimization remains disabled by default.

Closes #78239.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions