summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaximilian Stemmer-Grabow <mail@mxsg.de>2021-11-15 20:17:55 +0100
committerAndreas Fried <andreas.fried@kit.edu>2021-12-02 12:57:28 +0100
commit32171919f33f18d7104424cec0a68c403a55510a (patch)
tree6590ffa95f57ac1147cb43e3c2c1bf0d0e2f9c0d
parent34e224f548c52c4e05f425d3ead4878de585ea8f (diff)
Disable entity location checking
-rw-r--r--ir/be/riscv/riscv_compression.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ir/be/riscv/riscv_compression.c b/ir/be/riscv/riscv_compression.c
index 772f0b2..33561ac 100644
--- a/ir/be/riscv/riscv_compression.c
+++ b/ir/be/riscv/riscv_compression.c
@@ -73,11 +73,11 @@ int riscv_get_op_compression_requirements(ir_node const *const node)
// In this case, the value can be directly inserted before the executable is being linked,
// and the resulting load may be compressible. If not, the value will be inserted at link-time
// and the load instructions may never be compressed.
- ir_entity* entity = imm->ent;
- if (!entity_has_definition(entity)) {
- requirement = comp_req_never;
- break;
- }
+ // ir_entity* entity = imm->ent;
+ // if (!entity && !entity_has_definition(entity)) {
+ // requirement = comp_req_never;
+ // break;
+ // }
int32_t val = imm->val;
int32_t upper_val = val >> 12; // The lower 12 bits are ignored by lui
@@ -93,11 +93,11 @@ int riscv_get_op_compression_requirements(ir_node const *const node)
int32_t val = imm->val;
// See above for rationale
- ir_entity* entity = imm->ent;
- if (!entity_has_definition(entity)) {
- requirement = comp_req_never;
- break;
- }
+ // ir_entity* entity = imm->ent;
+ // if (!entity && !entity_has_definition(entity)) {
+ // requirement = comp_req_never;
+ // break;
+ // }
requirement = riscv_fits_into(val, 6) ? comp_req_2addr : comp_req_never;
break;