@@ -1800,7 +1800,7 @@ TEST_F(InstrRefLDVTest, pickVPHILocDiamond) {
1800
1800
ValueIDNum RspPHIInBlk3 (RetBlk, 0 , RspLoc);
1801
1801
1802
1802
DebugVariable Var (FuncVariable, None, nullptr );
1803
- DbgValueProperties EmptyProps (EmptyExpr, false );
1803
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
1804
1804
SmallVector<DbgValue, 32 > VLiveOuts;
1805
1805
VLiveOuts.resize (4 , DbgValue (EmptyProps, DbgValue::Undef));
1806
1806
InstrRefBasedLDV::LiveIdxT VLiveOutIdx;
@@ -1888,13 +1888,13 @@ TEST_F(InstrRefLDVTest, pickVPHILocDiamond) {
1888
1888
// different indirectness or DIExpression.
1889
1889
DIExpression *NewExpr =
1890
1890
DIExpression::prepend (EmptyExpr, DIExpression::ApplyOffset, 4 );
1891
- DbgValueProperties PropsWithExpr (NewExpr, false );
1891
+ DbgValueProperties PropsWithExpr (NewExpr, false , false );
1892
1892
VLiveOuts[1 ] = DbgValue (LiveInRsp, EmptyProps, DbgValue::Def);
1893
1893
VLiveOuts[2 ] = DbgValue (LiveInRsp, PropsWithExpr, DbgValue::Def);
1894
1894
Result = pickVPHILoc (*MBB3, Var, VLiveOutIdx, MOutLocs, Preds);
1895
1895
EXPECT_FALSE (Result);
1896
1896
1897
- DbgValueProperties PropsWithIndirect (EmptyExpr, true );
1897
+ DbgValueProperties PropsWithIndirect (EmptyExpr, true , false );
1898
1898
VLiveOuts[1 ] = DbgValue (LiveInRsp, EmptyProps, DbgValue::Def);
1899
1899
VLiveOuts[2 ] = DbgValue (LiveInRsp, PropsWithIndirect, DbgValue::Def);
1900
1900
Result = pickVPHILoc (*MBB3, Var, VLiveOutIdx, MOutLocs, Preds);
@@ -1929,7 +1929,7 @@ TEST_F(InstrRefLDVTest, pickVPHILocLoops) {
1929
1929
ValueIDNum RaxPHIInBlk1 (LoopBlk, 0 , RaxLoc);
1930
1930
1931
1931
DebugVariable Var (FuncVariable, None, nullptr );
1932
- DbgValueProperties EmptyProps (EmptyExpr, false );
1932
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
1933
1933
SmallVector<DbgValue, 32 > VLiveOuts;
1934
1934
VLiveOuts.resize (3 , DbgValue (EmptyProps, DbgValue::Undef));
1935
1935
InstrRefBasedLDV::LiveIdxT VLiveOutIdx;
@@ -2031,7 +2031,7 @@ TEST_F(InstrRefLDVTest, pickVPHILocBadlyNestedLoops) {
2031
2031
ValueIDNum RbxPHIInBlk1 (Loop1Blk, 0 , RbxLoc);
2032
2032
2033
2033
DebugVariable Var (FuncVariable, None, nullptr );
2034
- DbgValueProperties EmptyProps (EmptyExpr, false );
2034
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2035
2035
SmallVector<DbgValue, 32 > VLiveOuts;
2036
2036
VLiveOuts.resize (5 , DbgValue (EmptyProps, DbgValue::Undef));
2037
2037
InstrRefBasedLDV::LiveIdxT VLiveOutIdx;
@@ -2160,7 +2160,7 @@ TEST_F(InstrRefLDVTest, vlocJoinDiamond) {
2160
2160
ValueIDNum RspPHIInBlkRetBlk (RetBlk, 0 , RspLoc);
2161
2161
2162
2162
DebugVariable Var (FuncVariable, None, nullptr );
2163
- DbgValueProperties EmptyProps (EmptyExpr, false );
2163
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2164
2164
SmallVector<DbgValue, 32 > VLiveOuts;
2165
2165
VLiveOuts.resize (4 , DbgValue (EmptyProps, DbgValue::Undef));
2166
2166
InstrRefBasedLDV::LiveIdxT VLiveOutIdx;
@@ -2272,7 +2272,7 @@ TEST_F(InstrRefLDVTest, vlocJoinDiamond) {
2272
2272
EXPECT_EQ (JoinedLoc.BlockNo , 0 );
2273
2273
2274
2274
// We shouldn't eliminate PHIs when properties disagree.
2275
- DbgValueProperties PropsWithIndirect (EmptyExpr, true );
2275
+ DbgValueProperties PropsWithIndirect (EmptyExpr, true , false );
2276
2276
VLiveOuts[1 ] = DbgValue (LiveInRsp, EmptyProps, DbgValue::Def);
2277
2277
VLiveOuts[2 ] = DbgValue (LiveInRsp, PropsWithIndirect, DbgValue::Def);
2278
2278
JoinedLoc = DbgValue (3 , EmptyProps, DbgValue::VPHI);
@@ -2299,7 +2299,7 @@ TEST_F(InstrRefLDVTest, vlocJoinDiamond) {
2299
2299
// not be eliminated.
2300
2300
DIExpression *NewExpr =
2301
2301
DIExpression::prepend (EmptyExpr, DIExpression::ApplyOffset, 4 );
2302
- DbgValueProperties PropsWithExpr (NewExpr, false );
2302
+ DbgValueProperties PropsWithExpr (NewExpr, false , false );
2303
2303
VLiveOuts[1 ] = DbgValue (LiveInRsp, EmptyProps, DbgValue::Def);
2304
2304
VLiveOuts[2 ] = DbgValue (LiveInRsp, PropsWithExpr, DbgValue::Def);
2305
2305
JoinedLoc = DbgValue (3 , EmptyProps, DbgValue::VPHI);
@@ -2328,7 +2328,7 @@ TEST_F(InstrRefLDVTest, vlocJoinLoops) {
2328
2328
ValueIDNum RspPHIInBlk1 (LoopBlk, 0 , RspLoc);
2329
2329
2330
2330
DebugVariable Var (FuncVariable, None, nullptr );
2331
- DbgValueProperties EmptyProps (EmptyExpr, false );
2331
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2332
2332
SmallVector<DbgValue, 32 > VLiveOuts;
2333
2333
VLiveOuts.resize (3 , DbgValue (EmptyProps, DbgValue::Undef));
2334
2334
InstrRefBasedLDV::LiveIdxT VLiveOutIdx;
@@ -2384,7 +2384,7 @@ TEST_F(InstrRefLDVTest, vlocJoinLoops) {
2384
2384
// properties.
2385
2385
DIExpression *NewExpr =
2386
2386
DIExpression::prepend (EmptyExpr, DIExpression::ApplyOffset, 4 );
2387
- DbgValueProperties PropsWithExpr (NewExpr, false );
2387
+ DbgValueProperties PropsWithExpr (NewExpr, false , false );
2388
2388
VLiveOuts[0 ] = DbgValue (LiveInRsp, EmptyProps, DbgValue::Def);
2389
2389
VLiveOuts[1 ] = DbgValue (1 , PropsWithExpr, DbgValue::VPHI);
2390
2390
JoinedLoc = DbgValue (1 , EmptyProps, DbgValue::VPHI);
@@ -2431,7 +2431,7 @@ TEST_F(InstrRefLDVTest, vlocJoinBadlyNestedLoops) {
2431
2431
ValueIDNum LiveInRbx (EntryBlk, 0 , RbxLoc);
2432
2432
2433
2433
DebugVariable Var (FuncVariable, None, nullptr );
2434
- DbgValueProperties EmptyProps (EmptyExpr, false );
2434
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2435
2435
SmallVector<DbgValue, 32 > VLiveOuts;
2436
2436
VLiveOuts.resize (5 , DbgValue (EmptyProps, DbgValue::Undef));
2437
2437
InstrRefBasedLDV::LiveIdxT VLiveOutIdx;
@@ -2477,7 +2477,7 @@ TEST_F(InstrRefLDVTest, vlocJoinBadlyNestedLoops) {
2477
2477
EXPECT_EQ (JoinedLoc.ID , LiveInRsp);
2478
2478
2479
2479
// They shouldn't merge if one of their properties is different.
2480
- DbgValueProperties PropsWithIndirect (EmptyExpr, true );
2480
+ DbgValueProperties PropsWithIndirect (EmptyExpr, true , false );
2481
2481
VLiveOuts[0 ] = DbgValue (LiveInRsp, EmptyProps, DbgValue::Def);
2482
2482
VLiveOuts[1 ] = DbgValue (1 , EmptyProps, DbgValue::VPHI);
2483
2483
VLiveOuts[2 ] = DbgValue (1 , PropsWithIndirect, DbgValue::VPHI);
@@ -2516,7 +2516,7 @@ TEST_F(InstrRefLDVTest, VLocSingleBlock) {
2516
2516
MInLocs[0 ][0 ] = MOutLocs[0 ][0 ] = LiveInRsp;
2517
2517
2518
2518
DebugVariable Var (FuncVariable, None, nullptr );
2519
- DbgValueProperties EmptyProps (EmptyExpr, false );
2519
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2520
2520
2521
2521
SmallSet<DebugVariable, 4 > AllVars;
2522
2522
AllVars.insert (Var);
@@ -2576,7 +2576,7 @@ TEST_F(InstrRefLDVTest, VLocDiamondBlocks) {
2576
2576
initValueArray (MOutLocs, 4 , 2 );
2577
2577
2578
2578
DebugVariable Var (FuncVariable, None, nullptr );
2579
- DbgValueProperties EmptyProps (EmptyExpr, false );
2579
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2580
2580
2581
2581
SmallSet<DebugVariable, 4 > AllVars;
2582
2582
AllVars.insert (Var);
@@ -2793,7 +2793,7 @@ TEST_F(InstrRefLDVTest, VLocSimpleLoop) {
2793
2793
initValueArray (MOutLocs, 3 , 2 );
2794
2794
2795
2795
DebugVariable Var (FuncVariable, None, nullptr );
2796
- DbgValueProperties EmptyProps (EmptyExpr, false );
2796
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
2797
2797
2798
2798
SmallSet<DebugVariable, 4 > AllVars;
2799
2799
AllVars.insert (Var);
@@ -3046,7 +3046,7 @@ TEST_F(InstrRefLDVTest, VLocNestedLoop) {
3046
3046
initValueArray (MOutLocs, 5 , 2 );
3047
3047
3048
3048
DebugVariable Var (FuncVariable, None, nullptr );
3049
- DbgValueProperties EmptyProps (EmptyExpr, false );
3049
+ DbgValueProperties EmptyProps (EmptyExpr, false , false );
3050
3050
3051
3051
SmallSet<DebugVariable, 4 > AllVars;
3052
3052
AllVars.insert (Var);
0 commit comments