Searched refs:SIW (Results 1 – 3 of 3) sorted by relevance
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | InstructionsTest.cpp | 982 SwitchInstProfUpdateWrapper SIW(*SI); in TEST() local 983 EXPECT_EQ(*SIW.getSuccessorWeight(0), 9u); in TEST() 984 EXPECT_EQ(*SIW.getSuccessorWeight(1), 1u); in TEST() 985 EXPECT_EQ(*SIW.getSuccessorWeight(2), 22u); in TEST() 986 SIW.setSuccessorWeight(0, 99u); in TEST() 987 SIW.setSuccessorWeight(1, 11u); in TEST() 988 EXPECT_EQ(*SIW.getSuccessorWeight(0), 99u); in TEST() 989 EXPECT_EQ(*SIW.getSuccessorWeight(1), 11u); in TEST() 990 EXPECT_EQ(*SIW.getSuccessorWeight(2), 22u); in TEST() 994 SwitchInstProfUpdateWrapper SIW(*SI); in TEST() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | SimpleLoopUnswitch.cpp | 751 SwitchInstProfUpdateWrapper SIW(SI); in unswitchTrivialSwitch() local 761 auto W = SIW.getSuccessorWeight(CaseI->getSuccessorIndex()); in unswitchTrivialSwitch() 764 SIW.removeCase(CaseI); in unswitchTrivialSwitch() 874 SIW.getSuccessorWeight(Case.getSuccessorIndex())); in unswitchTrivialSwitch() 879 auto W = SIW.getSuccessorWeight(Case.getSuccessorIndex()); in unswitchTrivialSwitch() 909 SIW.eraseFromParent(); in unswitchTrivialSwitch() 921 SIW.setSuccessorWeight( in unswitchTrivialSwitch() 922 0, SIW.getSuccessorWeight(LastCaseI->getSuccessorIndex())); in unswitchTrivialSwitch() 923 SIW.removeCase(LastCaseI); in unswitchTrivialSwitch()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 4490 SwitchInstProfUpdateWrapper SIW(*SI); in tryToSimplifyUncondBranchWithICmpInIt() local 4491 auto W0 = SIW.getSuccessorWeight(0); in tryToSimplifyUncondBranchWithICmpInIt() 4495 SIW.setSuccessorWeight(0, *NewW); in tryToSimplifyUncondBranchWithICmpInIt() 4497 SIW.addCase(Cst, NewBB, NewW); in tryToSimplifyUncondBranchWithICmpInIt() 5319 SwitchInstProfUpdateWrapper SIW(*SI); in eliminateDeadSwitchCases() local 5326 SIW.removeCase(CaseI); in eliminateDeadSwitchCases()
|