[llvm] fa5c2eb - [NFC][X86] Pass ConstantInt for step size in createLoop

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 15 18:28:05 PST 2026


Author: Aiden Grossman
Date: 2026-02-15T18:28:01-08:00
New Revision: fa5c2eb8dd1d258a8f5da70dea1b8237f262eead

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

LOG: [NFC][X86] Pass ConstantInt for step size in createLoop

createLoop is always called with a constant step size. Propagate the
type information so that it can be used later when deriving profile
information when possible.

Reviewers: phoebewang, RKSimon, mtrofin

Pull Request: https://github.com/llvm/llvm-project/pull/181577

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp b/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
index 662aec2c15241..4912e3d7dd6df 100644
--- a/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
+++ b/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
@@ -71,7 +71,7 @@ class X86LowerAMXIntrinsics {
   DomTreeUpdater &DTU;
   LoopInfo *LI;
   BasicBlock *createLoop(BasicBlock *Preheader, BasicBlock *Exit, Value *Bound,
-                         Value *Step, StringRef Name, IRBuilderBase &B,
+                         ConstantInt *Step, StringRef Name, IRBuilderBase &B,
                          Loop *L);
   template <bool IsTileLoad>
   Value *createTileLoadStoreLoops(BasicBlock *Start, BasicBlock *End,
@@ -103,7 +103,7 @@ class X86LowerAMXIntrinsics {
 
 BasicBlock *X86LowerAMXIntrinsics::createLoop(BasicBlock *Preheader,
                                               BasicBlock *Exit, Value *Bound,
-                                              Value *Step, StringRef Name,
+                                              ConstantInt *Step, StringRef Name,
                                               IRBuilderBase &B, Loop *L) {
   LLVMContext &Ctx = Preheader->getContext();
   BasicBlock *Header =


        


More information about the llvm-commits mailing list