summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-09-27 19:50:16 +0000
committerTobias Grosser <tobias@grosser.es>2015-09-27 19:50:16 +0000
commit0722a1e5d5fcd2c126ea009ff85ad6b04a5fdf28 (patch)
treedc3c18407ce2637b3b781204d5b9d69324719c15 /llvm/lib/Transforms
parenta43b6e935c341a9feaff49b10e08b7474a4aaff5 (diff)
downloadbcm5719-llvm-0722a1e5d5fcd2c126ea009ff85ad6b04a5fdf28.tar.gz
bcm5719-llvm-0722a1e5d5fcd2c126ea009ff85ad6b04a5fdf28.zip
BlockGenerator: Be less agressive with deleting dead instructions
We now only delete trivially dead instructions in the BB we copy (copyBB), but not in any other BB. Only for copyBB we know that there will _never_ be any future uses of instructions that have no use after copyBB has been generated. Other instructions in the AST that have been generated by IslNodeBuilder may look dead at the moment, but may possibly still be referenced by GlobalMaps. If we delete them now, later uses would break surprisingly. We do not have a test case that breaks due to us deleting too many instructions. This issue was found by inspection. llvm-svn: 248688
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud