diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-03-03 11:05:11 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-16 21:14:14 +0100 |
| commit | 0e5ac86500040e8abda1bfa9a7c9084a7dd690a4 (patch) | |
| tree | 91551a0e692bfb9f5daaf7991a57ffc44559f591 /linearize.c | |
| parent | 5b2155fd23945aab223f63c27482a38b5669a7d6 (diff) | |
| download | sparse-dev-0e5ac86500040e8abda1bfa9a7c9084a7dd690a4.tar.gz | |
give a type to OP_SELs, always
Currently, when a phi-node is converted into a OP_SEL
this instruction is given a size but not a type but when
created directly it is given a type.
For consistency and for sparse-LLVM which needs it,
give them always a type.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'linearize.c')
| -rw-r--r-- | linearize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linearize.c b/linearize.c index 6c002cc9..d22e4392 100644 --- a/linearize.c +++ b/linearize.c @@ -687,7 +687,7 @@ void insert_select(struct basic_block *bb, struct instruction *br, struct instru /* Remove the 'br' */ delete_last_instruction(&bb->insns); - select = alloc_instruction(OP_SEL, phi_node->size); + select = alloc_typed_instruction(OP_SEL, phi_node->type); select->bb = bb; assert(br->cond); |
