aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2023-01-23 16:49:41 -0400
committerMatt Arsenault <arsenm2@gmail.com>2023-02-14 07:59:10 -0400
commitf3c008ca776bd17c085ba5be34cdf7569971628a (patch)
treef5b488dfd1996bcbe35dc6ad19a320520db6956f /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parent3849dc1f8eebe67287831512eadeadebdd8a05c1 (diff)
downloadllvm-f3c008ca776bd17c085ba5be34cdf7569971628a.zip
llvm-f3c008ca776bd17c085ba5be34cdf7569971628a.tar.gz
llvm-f3c008ca776bd17c085ba5be34cdf7569971628a.tar.bz2
DAG: Relax foldBitcastedFPLogic conditions
Requiring a bitcast to exist was unhelpful. The most basic cases are always going to be a CopyFromReg or load, so they would need a new cast inserted. Don't require a bitcast if it's a free operation. I don't think this logic makes particularly much sense (it seems to be imparting special interpretation of bitcast), but this needs to be in sync with foldSignChangeInBitcast. We should also get rid of this hasBitPreservingFPLogic hook. fabs/fneg are bitpreserving or incorrectly implemented, so this should just be a regular legality check.
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions