[all-commits] [llvm/llvm-project] 511c9c: [UTC] Support to test annotated IR (#165419)
Kunqiu Chen via All-commits
all-commits at lists.llvm.org
Fri Oct 31 06:04:57 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 511c9c064804e86eaad5f1df4b67e6474639f434
https://github.com/llvm/llvm-project/commit/511c9c064804e86eaad5f1df4b67e6474639f434
Author: Kunqiu Chen <camsyn at foxmail.com>
Date: 2025-10-31 (Fri, 31 Oct 2025)
Changed paths:
M llvm/test/Transforms/Util/PredicateInfo/branch-on-same-cond.ll
M llvm/test/Transforms/Util/PredicateInfo/condprop.ll
M llvm/test/Transforms/Util/PredicateInfo/diamond.ll
M llvm/test/Transforms/Util/PredicateInfo/edge.ll
M llvm/test/Transforms/Util/PredicateInfo/pr33456.ll
M llvm/test/Transforms/Util/PredicateInfo/pr33457.ll
M llvm/test/Transforms/Util/PredicateInfo/testandor.ll
M llvm/utils/UpdateTestChecks/common.py
M llvm/utils/update_test_checks.py
Log Message:
-----------
[UTC] Support to test annotated IR (#165419)
Some analysis/transformation, e.g., predicate info/ mem ssa, insert
instruction annotations as comments, referring to
https://github.com/llvm/llvm-project/pull/165249#discussion_r2466200672.
This PR makes UTC support checking these instruction annotations with an
extra UTC option `-check-inst-comments`.
E.g.,
Before:
```LLVM
; CHECK: [[Z_0:%.*]] = bitcast i1 [[Z]] to i1
```
After:
```LLVM
; CHECK-NEXT: ; branch predicate info { TrueEdge: 0 Comparison: [[Z]] = and i1 [[XZ]], [[YZ]] Edge: [label [[TMP0:%.*]],label %nope], RenamedOp: [[Z]] }
; CHECK-NEXT: [[Z_0:%.*]] = bitcast i1 [[Z]] to i1
```
This PR also regenerates all UTC-generated tests for PredicateInfo; No
MemSSA test is updated, as there are no UTC-generated tests designated
for `print<memoryssa>`.
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