[llvm] 65c5f4e - canFoldMergeOpcode returns a bool result not an unsigned. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 10:44:41 PST 2019


Author: Simon Pilgrim
Date: 2019-11-07T18:42:01Z
New Revision: 65c5f4e929e75596732ec49dafe71bc6abea847d

URL: https://github.com/llvm/llvm-project/commit/65c5f4e929e75596732ec49dafe71bc6abea847d
DIFF: https://github.com/llvm/llvm-project/commit/65c5f4e929e75596732ec49dafe71bc6abea847d.diff

LOG: canFoldMergeOpcode returns a bool result not an unsigned. NFCI.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h b/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
index 479eb8c445f5..376d07dee8bc 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
@@ -217,8 +217,8 @@ class LegalizationArtifactCombiner {
     return false;
   }
 
-  static unsigned canFoldMergeOpcode(unsigned MergeOp, unsigned ConvertOp,
-                                     LLT OpTy, LLT DestTy) {
+  static bool canFoldMergeOpcode(unsigned MergeOp, unsigned ConvertOp,
+                                 LLT OpTy, LLT DestTy) {
     // Check if we found a definition that is like G_MERGE_VALUES.
     switch (MergeOp) {
     default:


        


More information about the llvm-commits mailing list