Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GlobalISel] Remove unused function narrowToSmallerAndWidenToSmallest #69130

Conversation

kazutakahirata
Copy link
Contributor

The last use was removed by:

commit b163efa
Author: Simon Pilgrim llvm-dev@redking.me.uk
Date: Thu Jun 15 13:56:53 2023 +0100

The last use was removed by:

  commit b163efa
  Author: Simon Pilgrim <llvm-dev@redking.me.uk>
  Date:   Thu Jun 15 13:56:53 2023 +0100
@llvmbot
Copy link
Member

llvmbot commented Oct 15, 2023

@llvm/pr-subscribers-llvm-globalisel

Author: Kazu Hirata (kazutakahirata)

Changes

The last use was removed by:

commit b163efa
Author: Simon Pilgrim <llvm-dev@redking.me.uk>
Date: Thu Jun 15 13:56:53 2023 +0100


Full diff: https://github.com/llvm/llvm-project/pull/69130.diff

1 Files Affected:

  • (modified) llvm/include/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h (-10)
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h b/llvm/include/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h
index 08233dba2041143..0b167ce9650d070 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/LegacyLegalizerInfo.h
@@ -240,16 +240,6 @@ class LegacyLegalizerInfo {
                                                        Unsupported);
   }
 
-  static SizeAndActionsVec
-  narrowToSmallerAndWidenToSmallest(const SizeAndActionsVec &v) {
-    using namespace LegacyLegalizeActions;
-    assert(v.size() > 0 &&
-           "At least one size that can be legalized towards is needed"
-           " for this SizeChangeStrategy");
-    return decreaseToSmallerTypesAndIncreaseToSmallest(v, NarrowScalar,
-                                                       WidenScalar);
-  }
-
   /// A SizeChangeStrategy for the common case where legalization for a
   /// particular vector operation consists of having more elements in the
   /// vector, to a type that is legal. Unless there is no such type and then

Copy link
Collaborator

@RKSimon RKSimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kazutakahirata kazutakahirata merged commit 9cc6f49 into llvm:main Oct 16, 2023
@kazutakahirata kazutakahirata deleted the pr_cleanup_dead_function_narrowToSmallerAndWidenToSmallest branch October 16, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants