From fece51c37252e654cd46eda5fd12938b4be7deff Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Tue, 1 Dec 2020 00:00:43 +0100 Subject: volatile stores are never dead so they shouldn't be killed. Signed-off-by: Luc Van Oostenryck --- memops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memops.c b/memops.c index 31fd2d3e..8020f2e6 100644 --- a/memops.c +++ b/memops.c @@ -215,6 +215,8 @@ static bool try_to_kill_store(pseudo_t pseudo, struct instruction *insn, return false; if (dom->opcode == OP_LOAD) return false; + if (dom->is_volatile) + return false; /* Yeehaa! Found one! */ kill_instruction_force(dom); } -- cgit 1.2.3-korg