diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-04-02 11:41:47 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 11:41:47 +0700 |
commit | adbe9e20bf157fda89a8896d3832dc9e3cd4351c (patch) | |
tree | a114376bc082075c0e21c864a8c88cbfe4a3a5c0 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0cfabd37df9940346f3bf8a4d74c19e1f48a00e9 (diff) | |
download | llvm-adbe9e20bf157fda89a8896d3832dc9e3cd4351c.zip llvm-adbe9e20bf157fda89a8896d3832dc9e3cd4351c.tar.gz llvm-adbe9e20bf157fda89a8896d3832dc9e3cd4351c.tar.bz2 |
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.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions