| Index: src/IceTargetLoweringX8632.cpp
|
| diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp
|
| index bdae39451bf3e727e8d775d93c5f815cf42bb96a..ccf73c20f80ce6ca9f49ac4ca9618021694bb9bf 100644
|
| --- a/src/IceTargetLoweringX8632.cpp
|
| +++ b/src/IceTargetLoweringX8632.cpp
|
| @@ -804,15 +804,15 @@ void TargetX8632::addProlog(CfgNode *Node) {
|
| // that stack slot.
|
| std::function<bool(Variable *)> TargetVarHook =
|
| [&VariablesLinkedToSpillSlots](Variable *Var) {
|
| - if (SpillVariable *SpillVar = llvm::dyn_cast<SpillVariable>(Var)) {
|
| - assert(Var->getWeight().isZero());
|
| - if (SpillVar->getLinkedTo() && !SpillVar->getLinkedTo()->hasReg()) {
|
| - VariablesLinkedToSpillSlots.push_back(Var);
|
| - return true;
|
| - }
|
| - }
|
| - return false;
|
| - };
|
| + if (SpillVariable *SpillVar = llvm::dyn_cast<SpillVariable>(Var)) {
|
| + assert(Var->getWeight().isZero());
|
| + if (SpillVar->getLinkedTo() && !SpillVar->getLinkedTo()->hasReg()) {
|
| + VariablesLinkedToSpillSlots.push_back(Var);
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| + };
|
|
|
| // Compute the list of spilled variables and bounds for GlobalsSize, etc.
|
| getVarStackSlotParams(SortedSpilledVariables, RegsUsed, &GlobalsSize,
|
| @@ -3006,10 +3006,11 @@ void TargetX8632::lowerIntrinsicCall(const InstIntrinsicCall *Instr) {
|
| Func->setError("Unexpected memory ordering for AtomicRMW");
|
| return;
|
| }
|
| - lowerAtomicRMW(Instr->getDest(),
|
| - static_cast<uint32_t>(llvm::cast<ConstantInteger32>(
|
| - Instr->getArg(0))->getValue()),
|
| - Instr->getArg(1), Instr->getArg(2));
|
| + lowerAtomicRMW(
|
| + Instr->getDest(),
|
| + static_cast<uint32_t>(
|
| + llvm::cast<ConstantInteger32>(Instr->getArg(0))->getValue()),
|
| + Instr->getArg(1), Instr->getArg(2));
|
| return;
|
| case Intrinsics::AtomicStore: {
|
| if (!Intrinsics::isMemoryOrderValid(
|
|
|