aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorQiu Chaofan <qiucofan@cn.ibm.com>2020-09-17 16:00:54 +0800
committerQiu Chaofan <qiucofan@cn.ibm.com>2020-09-17 16:00:54 +0800
commita2fb5446be960ad164060b3c05fc268f7f72d67a (patch)
tree84640d1791c60b43c9b05a8acc8f6e2cf16f0254 /llvm/lib/CodeGen/ModuloSchedule.cpp
parentb05629230e9c7e90a2e70a761f7800afb1a8eefd (diff)
downloadllvm-a2fb5446be960ad164060b3c05fc268f7f72d67a.zip
llvm-a2fb5446be960ad164060b3c05fc268f7f72d67a.tar.gz
llvm-a2fb5446be960ad164060b3c05fc268f7f72d67a.tar.bz2
[SelectionDAG] Check any use of negation result before removal
2508ef01 fixed a bug about constant removal in negation. But after sanitizing check I found there's still some issue about it so it's reverted. Temporary nodes will be removed if useless in negation. Before the removal, they'd be checked if any other nodes used it. So the removal was moved after getNode. However in rare cases the node to be removed is the same as result of getNode. We missed that and will be fixed by this patch. Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D87614
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions