Revert "AMDGPU: Override getNegatedExpression constant handling"
authorJay Foad <jay.foad@amd.com>
Thu, 16 Feb 2023 17:05:33 +0000 (17:05 +0000)
committerJay Foad <jay.foad@amd.com>
Thu, 16 Feb 2023 17:11:32 +0000 (17:11 +0000)
commit8e5a41e8271fb95411a2867db00980abf7fe04fd
tree4b193c5ed03325b9a97aa5fbfd8b5ec8819a1b10
parentbbef38352fbade9e014ec97d5991da5dee306da7
Revert "AMDGPU: Override getNegatedExpression constant handling"

This reverts commit 11c3cead23783e65fb30e673d62771352078ff05.

It was causing infinite loops in the DAG combiner.
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/test/CodeGen/AMDGPU/fdiv32-to-rcp-folding.ll
llvm/test/CodeGen/AMDGPU/fneg-combines.f16.ll
llvm/test/CodeGen/AMDGPU/fneg-combines.new.ll
llvm/test/CodeGen/AMDGPU/v_pack.ll