Skip to content

Commit 9603433

Browse files
committed
InstCombine: Remove a check for pointer bitcasts
1 parent e7ad07f commit 9603433

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,8 +3661,7 @@ Instruction *InstCombinerImpl::visitUnconditionalBranchInst(BranchInst &BI) {
36613661

36623662
auto GetLastSinkableStore = [](BasicBlock::iterator BBI) {
36633663
auto IsNoopInstrForStoreMerging = [](BasicBlock::iterator BBI) {
3664-
return BBI->isDebugOrPseudoInst() ||
3665-
(isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy());
3664+
return BBI->isDebugOrPseudoInst();
36663665
};
36673666

36683667
BasicBlock::iterator FirstInstr = BBI->getParent()->begin();

0 commit comments

Comments
 (0)