Skip to content

Commit

Permalink
[X86][NFC] Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
LuoYuanke committed Jun 10, 2021
1 parent 7f0244a commit 63233da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/X86/X86FastTileConfig.cpp
Expand Up @@ -10,7 +10,7 @@
/// AMX register need to be configured before use. Before FastRegAllocation pass
/// the ldtilecfg instruction is inserted, however at that time we don't
/// know the shape of each physical tile registers, because the register
/// allocation is not done yet. This pass runs after egister allocation
/// allocation is not done yet. This pass runs after register allocation
/// pass. It collects the shape information of each physical tile register
/// and store the shape in the stack slot that is allocated for load config
/// to tile config register.
Expand Down
12 changes: 6 additions & 6 deletions llvm/lib/Target/X86/X86LowerAMXType.cpp
Expand Up @@ -457,18 +457,18 @@ class X86VolatileTileData {
public:
X86VolatileTileData(Function &Func) : F(Func) {}
Value *updatePhiIncomings(BasicBlock *BB,
SmallVector<Instruction *, 2> &Imcomings);
SmallVector<Instruction *, 2> &Incomings);
void replacePhiDefWithLoad(Instruction *PHI, Value *StorePtr);
bool volatileTileData();
void volatileTilePHI(PHINode *Inst);
void volatileTileNonPHI(Instruction *I);
};

Value *X86VolatileTileData::updatePhiIncomings(
BasicBlock *BB, SmallVector<Instruction *, 2> &Imcomings) {
BasicBlock *BB, SmallVector<Instruction *, 2> &Incomings) {
Value *I8Ptr = getAllocaPos(BB);

for (auto *I : Imcomings) {
for (auto *I : Incomings) {
User *Store = createTileStore(I, I8Ptr);

// All its uses (except phi) should load from stored mem.
Expand Down Expand Up @@ -546,16 +546,16 @@ void X86VolatileTileData::replacePhiDefWithLoad(Instruction *PHI,
// ------------------------------------------------------
void X86VolatileTileData::volatileTilePHI(PHINode *PHI) {
BasicBlock *BB = PHI->getParent();
SmallVector<Instruction *, 2> Imcomings;
SmallVector<Instruction *, 2> Incomings;

for (unsigned I = 0, E = PHI->getNumIncomingValues(); I != E; ++I) {
Value *Op = PHI->getIncomingValue(I);
Instruction *Inst = dyn_cast<Instruction>(Op);
assert(Inst && "We shouldn't fold AMX instrution!");
Imcomings.push_back(Inst);
Incomings.push_back(Inst);
}

Value *StorePtr = updatePhiIncomings(BB, Imcomings);
Value *StorePtr = updatePhiIncomings(BB, Incomings);
replacePhiDefWithLoad(PHI, StorePtr);
}

Expand Down

0 comments on commit 63233da

Please sign in to comment.