[SelectionDAG] Remove unused FP constant in getNegatedExpression
authorQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 15 Sep 2020 09:59:10 +0000 (17:59 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 15 Sep 2020 09:59:10 +0000 (17:59 +0800)
commit2508ef014e8b01006de4e5ee6fd451d1f68d550f
treed3572c7822081037a65d3bf9b0f3e728410ae030
parent5f13d6c1eef7fa4264d143af6e7bafbb74937ccd
[SelectionDAG] Remove unused FP constant in getNegatedExpression

960cbc53 immediately removes nodes that won't be used to avoid
compilation time explosion. This patch adds the removal to constants to
fix PR47517.

Reviewed By: RKSimon, steven.zhang

Differential Revision: https://reviews.llvm.org/D87614
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/pr47517.ll [new file with mode: 0644]