diff options
| author | WormHeamer | 2025-08-04 22:13:25 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-04 22:13:25 -0400 |
| commit | 88b01f43312eeceba87a1378be5cd63bb11f167f (patch) | |
| tree | c7046558223ac692958ca1c7b9da71f05493f148 /ir.h | |
| parent | 22aa7559a37c49def05e8a43b12561b17a4af258 (diff) | |
fix bug of lhs getting culled if same node optimized out of rhs
Diffstat (limited to 'ir.h')
| -rw-r--r-- | ir.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -62,20 +62,14 @@ typedef enum { const char *node_type_name(NodeType t); -#define NODE_INPUT_MAX 2 - -typedef struct { - struct Node *data[NODE_INPUT_MAX]; - ptrdiff_t len; -} NodeInputs; - -typedef DYNARR(struct Node *) NodeOutputs; +typedef DYNARR(struct Node *) NodeList; +typedef NodeList NodeInputs, NodeOutputs; typedef struct Node { + int id, refs; union { struct Node *prev_free; struct { - int id, refs; int walked; NodeType type; LexSpan src_pos; |
