Skip to content

Commit de65e81

Browse files
authored
[NFC] Remove unused code (KhronosGroup#5554)
1 parent ad11927 commit de65e81

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

source/opt/def_use_manager.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@ namespace spvtools {
2727
namespace opt {
2828
namespace analysis {
2929

30-
// Class for representing a use of id. Note that:
31-
// * Result type id is a use.
32-
// * Ids referenced in OpSectionMerge & OpLoopMerge are considered as use.
33-
// * Ids referenced in OpPhi's in operands are considered as use.
34-
struct Use {
35-
Instruction* inst; // Instruction using the id.
36-
uint32_t operand_index; // logical operand index of the id use. This can be
37-
// the index of result type id.
38-
};
39-
40-
inline bool operator==(const Use& lhs, const Use& rhs) {
41-
return lhs.inst == rhs.inst && lhs.operand_index == rhs.operand_index;
42-
}
43-
44-
inline bool operator!=(const Use& lhs, const Use& rhs) { return !(lhs == rhs); }
45-
46-
inline bool operator<(const Use& lhs, const Use& rhs) {
47-
if (lhs.inst < rhs.inst) return true;
48-
if (lhs.inst > rhs.inst) return false;
49-
return lhs.operand_index < rhs.operand_index;
50-
}
51-
5230
// Definition should never be null. User can be null, however, such an entry
5331
// should be used only for searching (e.g. all users of a particular definition)
5432
// and never stored in a container.

0 commit comments

Comments
 (0)