[flang] [llvm] [clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/3] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/3] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/2] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff daddf402d9a4e3bacc37098d990e56dc9957ca3e 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 --

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: thyecust (thyecust) Changes We can simplify this function and move some calculations out of loop. --- Full diff: https://github.com/llvm/llvm-project/pull/72257.diff 1 Files Affected: - (modified) clang/lib/Analysis/ReachableCode.cpp (+

[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-14 Thread via cfe-commits
https://github.com/thyecust created https://github.com/llvm/llvm-project/pull/72257 We can simplify this function and move some calculations out of loop. >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH