mirror of
https://github.com/danog/ir.git
synced 2024-12-12 17:27:25 +01:00
37 lines
696 B
Plaintext
37 lines
696 B
Plaintext
--TEST--
|
|
002: Dead phi -O1
|
|
--ARGS--
|
|
-O1 --save
|
|
--CODE--
|
|
{
|
|
l_1 = START(l_12);
|
|
int32_t d_2 = PARAM(l_1, "x", 0);
|
|
int32_t d_3 = PARAM(l_1, "y", 1);
|
|
l_4 = IF(l_1, d_2);
|
|
l_5 = IF_TRUE(l_4);
|
|
l_6 = END(l_5);
|
|
l_7 = IF_FALSE(l_4);
|
|
l_8 = END(l_7);
|
|
l_9 = MERGE(l_6, l_8);
|
|
int32_t d_10 = PHI(l_9, d_2, d_3);
|
|
int32_t d_11 = NOT(d_10);
|
|
l_12 = RETURN(l_9);
|
|
}
|
|
--EXPECT--
|
|
{
|
|
uintptr_t c_1 = 0;
|
|
bool c_2 = 0;
|
|
bool c_3 = 1;
|
|
l_1 = START(l_11);
|
|
int32_t d_2 = PARAM(l_1, "x", 0);
|
|
int32_t d_3 = PARAM(l_1, "y", 1);
|
|
l_4 = IF(l_1, d_2);
|
|
l_5 = IF_TRUE(l_4);
|
|
l_6 = END(l_5);
|
|
l_7 = IF_FALSE(l_4);
|
|
l_8 = END(l_7);
|
|
l_9 = MERGE(l_6, l_8);
|
|
int32_t d_10 = PHI(l_9, d_2, d_3);
|
|
l_11 = RETURN(l_9, null);
|
|
}
|