Skip to content

Commit 4b805e1

Browse files
[X86] Remove Redundant memset Calls
These calls were added in 8d51149 to keep valgrind quiet. They are redundant, and I'm not aware of anyone attempting to run LLVM under valgrind these days, so deleting them.
1 parent 8f90716 commit 4b805e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Target/X86/X86FloatingPoint.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,7 @@ namespace {
5858

5959
struct FPS : public MachineFunctionPass {
6060
static char ID;
61-
FPS() : MachineFunctionPass(ID) {
62-
// This is really only to keep valgrind quiet.
63-
// The logic in isLive() is too much for it.
64-
memset(Stack, 0, sizeof(Stack));
65-
memset(RegMap, 0, sizeof(RegMap));
66-
}
61+
FPS() : MachineFunctionPass(ID) {}
6762

6863
void getAnalysisUsage(AnalysisUsage &AU) const override {
6964
AU.setPreservesCFG();

0 commit comments

Comments
 (0)