[llvm] 1e4de2d - [X86] Remove unused SmallString. Fold a Twine local variable into call. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 22:37:04 PDT 2023
Author: Craig Topper
Date: 2023-04-25T22:33:58-07:00
New Revision: 1e4de2d2701633a97de96c7a55353879ec9b7aa4
URL: https://github.com/llvm/llvm-project/commit/1e4de2d2701633a97de96c7a55353879ec9b7aa4
DIFF: https://github.com/llvm/llvm-project/commit/1e4de2d2701633a97de96c7a55353879ec9b7aa4.diff
LOG: [X86] Remove unused SmallString. Fold a Twine local variable into call. NFC
Added:
Modified:
llvm/lib/Target/X86/X86PreTileConfig.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86PreTileConfig.cpp b/llvm/lib/Target/X86/X86PreTileConfig.cpp
index 7fe4c88b79f7d..a382db493fd4a 100644
--- a/llvm/lib/Target/X86/X86PreTileConfig.cpp
+++ b/llvm/lib/Target/X86/X86PreTileConfig.cpp
@@ -43,12 +43,10 @@ using namespace llvm;
#define DEBUG_TYPE "tile-pre-config"
static void emitErrorMsg(MachineFunction &MF) {
- SmallString<32> Str;
- Twine ErrorMsg =
- MF.getName() +
- ": Failed to config tile register, please define the shape earlier";
LLVMContext &Context = MF.getMMI().getModule()->getContext();
- Context.emitError(ErrorMsg);
+ Context.emitError(
+ MF.getName() +
+ ": Failed to config tile register, please define the shape earlier");
}
namespace {
More information about the llvm-commits
mailing list