[all-commits] [llvm/llvm-project] adbe9e: llvm-reduce: Skip setting br conditions on already...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Tue Apr 1 21:42:08 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: adbe9e20bf157fda89a8896d3832dc9e3cd4351c
https://github.com/llvm/llvm-project/commit/adbe9e20bf157fda89a8896d3832dc9e3cd4351c
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
A llvm/test/tools/llvm-reduce/simplify-conditionals-already-constant-brcond.ll
M llvm/tools/llvm-reduce/deltas/ReduceUsingSimplifyCFG.cpp
Log Message:
-----------
llvm-reduce: Skip setting br conditions on already constant branches (#133841)
If we are trying to simplify branch conditions to true, ignore branches
already set to a constant true. If we are simplifying to constant false,
ignore the already constant false cases. This saves steps in this edge
case, and avoids the side effect of running simplifycfg on blocks we
did not intend to modify.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list