aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-09-26 11:03:25 +0100
committerFlorian Hahn <flo@fhahn.com>2020-09-26 13:47:50 +0100
commit8f0466edc0cb3782af4108bfe8840e2ad3de9b49 (patch)
treef279d852ef72bfc781ced1b357142c8e37d1deb3 /llvm/lib/CodeGen/MachineCSE.cpp
parentb2c0193afa2b25afc718bc32751147c5dc1bfd63 (diff)
downloadllvm-8f0466edc0cb3782af4108bfe8840e2ad3de9b49.zip
llvm-8f0466edc0cb3782af4108bfe8840e2ad3de9b49.tar.gz
llvm-8f0466edc0cb3782af4108bfe8840e2ad3de9b49.tar.bz2
[DSE] Unify & fix mem terminator location checks.
When looking for memory defs killed by memory terminators the code currently incorrectly ignores the size argument of llvm.lifetime.end. This patch updates the code to use isMemTerminator and updates isMemTerminator to use isOverwrite() to make sure locations that are outside the range marked as dead by llvm.lifetime.end are not considered. Note that isOverwrite is only used for llvm.lifetime.end, because free-like functions make the whole underlying object dead.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions