Skip to content

Commit 48f2fd0

Browse files
committed
C++: Accept IR changes.
1 parent d6352b4 commit 48f2fd0

File tree

3 files changed

+18
-23
lines changed

3 files changed

+18
-23
lines changed

cpp/ql/test/library-tests/ir/ir/aliased_ir.expected

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18360,8 +18360,10 @@ ir.cpp:
1836018360
# 2555| r2555_5(glval<unsigned long>) = VariableAddress[ul] :
1836118361
# 2555| m2555_6(unsigned long) = InitializeParameter[ul] : &:r2555_5
1836218362
# 2556| r2556_1(glval<double>) = VariableAddress[d] :
18363-
# 2556| r2556_2(double) = BuiltIn[__builtin_bit_cast] :
18364-
# 2556| m2556_3(double) = Store[d] : &:r2556_1, r2556_2
18363+
# 2556| r2556_2(glval<unsigned long>) = VariableAddress[ul] :
18364+
# 2556| r2556_3(unsigned long) = Load[ul] : &:r2556_2, m2555_6
18365+
# 2556| r2556_4(double) = BuiltIn[__builtin_bit_cast] : 0:r2556_3
18366+
# 2556| m2556_5(double) = Store[d] : &:r2556_1, r2556_4
1836518367
# 2557| v2557_1(void) = NoOp :
1836618368
# 2555| v2555_7(void) = ReturnVoid :
1836718369
# 2555| v2555_8(void) = AliasedUse : m2555_3

cpp/ql/test/library-tests/ir/ir/raw_consistency.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ lostReachability
2121
backEdgeCountMismatch
2222
useNotDominatedByDefinition
2323
| ir.cpp:1535:8:1535:8 | Unary | Operand 'Unary' is not dominated by its definition in function '$@'. | ir.cpp:1535:8:1535:8 | void StructuredBindingDataMemberStruct::StructuredBindingDataMemberStruct() | void StructuredBindingDataMemberStruct::StructuredBindingDataMemberStruct() |
24-
| ir.cpp:2556:43:2556:44 | Arg(1) | Operand 'Arg(1)' is not dominated by its definition in function '$@'. | ir.cpp:2555:6:2555:20 | void builtin_bitcast(unsigned long) | void builtin_bitcast(unsigned long) |
2524
| try_except.c:13:13:13:13 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | try_except.c:6:6:6:6 | void f() | void f() |
2625
| try_except.c:13:13:13:13 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | try_except.c:6:6:6:6 | void f() | void f() |
2726
| try_except.c:39:15:39:15 | Left | Operand 'Left' is not dominated by its definition in function '$@'. | try_except.c:32:6:32:6 | void h(int) | void h(int) |

cpp/ql/test/library-tests/ir/ir/raw_ir.expected

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16695,26 +16695,20 @@ ir.cpp:
1669516695

1669616696
# 2555| void builtin_bitcast(unsigned long)
1669716697
# 2555| Block 0
16698-
# 2555| v2555_1(void) = EnterFunction :
16699-
# 2555| mu2555_2(unknown) = AliasedDefinition :
16700-
# 2555| mu2555_3(unknown) = InitializeNonLocal :
16701-
# 2555| r2555_4(glval<unsigned long>) = VariableAddress[ul] :
16702-
# 2555| mu2555_5(unsigned long) = InitializeParameter[ul] : &:r2555_4
16703-
# 2556| r2556_1(glval<double>) = VariableAddress[d] :
16704-
#-----| Goto -> Block 1
16705-
16706-
# 2556| Block 1
16707-
# 2556| r2556_2(double) = BuiltIn[__builtin_bit_cast] : 1:r2556_5
16708-
# 2556| mu2556_3(double) = Store[d] : &:r2556_1, r2556_2
16709-
# 2557| v2557_1(void) = NoOp :
16710-
# 2555| v2555_6(void) = ReturnVoid :
16711-
# 2555| v2555_7(void) = AliasedUse : ~m?
16712-
# 2555| v2555_8(void) = ExitFunction :
16713-
16714-
# 2556| Block 2
16715-
# 2556| r2556_4(glval<unsigned long>) = VariableAddress[ul] :
16716-
# 2556| r2556_5(unsigned long) = Load[ul] : &:r2556_4, ~m?
16717-
#-----| Goto -> Block 1
16698+
# 2555| v2555_1(void) = EnterFunction :
16699+
# 2555| mu2555_2(unknown) = AliasedDefinition :
16700+
# 2555| mu2555_3(unknown) = InitializeNonLocal :
16701+
# 2555| r2555_4(glval<unsigned long>) = VariableAddress[ul] :
16702+
# 2555| mu2555_5(unsigned long) = InitializeParameter[ul] : &:r2555_4
16703+
# 2556| r2556_1(glval<double>) = VariableAddress[d] :
16704+
# 2556| r2556_2(glval<unsigned long>) = VariableAddress[ul] :
16705+
# 2556| r2556_3(unsigned long) = Load[ul] : &:r2556_2, ~m?
16706+
# 2556| r2556_4(double) = BuiltIn[__builtin_bit_cast] : 0:r2556_3
16707+
# 2556| mu2556_5(double) = Store[d] : &:r2556_1, r2556_4
16708+
# 2557| v2557_1(void) = NoOp :
16709+
# 2555| v2555_6(void) = ReturnVoid :
16710+
# 2555| v2555_7(void) = AliasedUse : ~m?
16711+
# 2555| v2555_8(void) = ExitFunction :
1671816712

1671916713
perf-regression.cpp:
1672016714
# 6| void Big::Big()

0 commit comments

Comments
 (0)