[llvm] 5fd55b1 - [InstCombine] Make TTI comment more forceful (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 25 03:13:31 PDT 2021


Author: Nikita Popov
Date: 2021-10-25T12:13:23+02:00
New Revision: 5fd55b1aaa11f782a2a0455c5fe00602051eba11

URL: https://github.com/llvm/llvm-project/commit/5fd55b1aaa11f782a2a0455c5fe00602051eba11
DIFF: https://github.com/llvm/llvm-project/commit/5fd55b1aaa11f782a2a0455c5fe00602051eba11.diff

LOG: [InstCombine] Make TTI comment more forceful (NFC)

To save people not familiar with InstCombine from creating patches
that are immediately rejected by policy.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/InstCombine/InstCombiner.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h b/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
index ad008325bba75..42735b7308862 100644
--- a/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
+++ b/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
@@ -43,7 +43,9 @@ class TargetTransformInfo;
 /// This class provides both the logic to recursively visit instructions and
 /// combine them.
 class LLVM_LIBRARY_VISIBILITY InstCombiner {
-  /// Only used to call target specific inst combining.
+  /// Only used to call target specific intrinsic combining.
+  /// It must **NOT** be used for any other purpose, as InstCombine is a
+  /// target-independent canonicalization transform.
   TargetTransformInfo &TTI;
 
 public:


        


More information about the llvm-commits mailing list