aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-03-01 07:16:39 -0800
committerCraig Topper <craig.topper@sifive.com>2022-03-01 07:32:07 -0800
commitbf8054644de952179ffc54f430ecf221ef260282 (patch)
tree980e089d66eb36db3ed6142c91d15643be3b48f5 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parentc752eb4ae19710983500eef963e258b207e42df0 (diff)
downloadllvm-bf8054644de952179ffc54f430ecf221ef260282.zip
llvm-bf8054644de952179ffc54f430ecf221ef260282.tar.gz
llvm-bf8054644de952179ffc54f430ecf221ef260282.tar.bz2
[DAGCombiner] Don't expand (neg (abs x)) if the abs has an additional user.
If the types aren't legal, the expansions may get type legalized in a different way preventing code sharing. If the type is legal, we will share some instructions between the two expansions, but we will need an extra register. Since we don't appear to fold (neg (sub A, B)) if the sub has an additional user, I think it makes sense not to expand NABS. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D120513
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions