[llvm] a51196e - [llvm-reduce] Remove unreachable branch (NFC)
Youngsuk Kim via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 08:31:21 PST 2023
Author: Youngsuk Kim
Date: 2023-11-30T10:30:48-06:00
New Revision: a51196ec6ed784eae9ca4d0feca3a582c8dfefd5
URL: https://github.com/llvm/llvm-project/commit/a51196ec6ed784eae9ca4d0feca3a582c8dfefd5
DIFF: https://github.com/llvm/llvm-project/commit/a51196ec6ed784eae9ca4d0feca3a582c8dfefd5.diff
LOG: [llvm-reduce] Remove unreachable branch (NFC)
Remove stale branch which is unreachable with opaque pointers.
Added:
Modified:
llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
index 93992303daf092f..f8fa83e9271335e 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
@@ -114,12 +114,6 @@ static bool callLooksLikeLoadStore(CallBase *CB, Value *&DataArg,
PtrArg = ConstantPointerNull::get(PtrTy);
}
- // Make sure we don't emit an invalid store with typed pointers.
- if (IsStore && DataArg->getType()->getPointerTo(
- cast<PointerType>(PtrArg->getType())->getAddressSpace()) !=
- PtrArg->getType())
- return false;
-
return true;
}
More information about the llvm-commits
mailing list