summary refs log tree commit diff
path: root/src/test/mir-opt/matches_reduce_branches.bar.MatchBranchSimplification.diff.32bit
AgeCommit message (Collapse)AuthorLines
2020-08-17Update MIR tests with comment verbosity fixAustin Lasher-72/+0
2020-08-15MatchBranchSimplification: fix equal const bool assignmentsTomasz Miąsko-0/+156
The match branch simplification is applied when target blocks contain statements that are either equal or perform a const bool assignment with different values to the same place. Previously, when constructing new statements, only statements from a single block had been examined. This lead to a misoptimization when statements are equal because the assign the *same* const bool value to the same place. Fix the issue by examining statements from both blocks when deciding on replacement.