[Openmp-commits] [lldb] [libcxx] [openmp] [libc] [mlir] [clang] [llvm] [flang] Fix Logical expression used for merged conditional if in FlattenCFG pass (PR #72522)
Matt Arsenault via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 16 18:47:10 PST 2023
================
@@ -25,13 +25,13 @@ define void @test_not_crash(i32 %in_a) #0 {
entry:
%cmp0 = icmp eq i32 %in_a, -1
%cmp1 = icmp ne i32 %in_a, 0
- %cond0 = and i1 %cmp0, %cmp1
+ %cond0 = or i1 %cmp0, %cmp1
br i1 %cond0, label %b0, label %b1
b0: ; preds = %entry
%cmp2 = icmp eq i32 %in_a, 0
%cmp3 = icmp ne i32 %in_a, 1
- %cond1 = or i1 %cmp2, %cmp3
----------------
arsenm wrote:
Why is this changing the original test? I would expect additional tests, and updates to the existing functions
https://github.com/llvm/llvm-project/pull/72522
More information about the Openmp-commits
mailing list