File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1501,8 +1501,7 @@ Instruction *InstCombinerImpl::visitStoreInst(StoreInst &SI) {
1501
1501
--BBI;
1502
1502
// Don't count debug info directives, lest they affect codegen,
1503
1503
// and we skip pointer-to-pointer bitcasts, which are NOPs.
1504
- if (BBI->isDebugOrPseudoInst () ||
1505
- (isa<BitCastInst>(BBI) && BBI->getType ()->isPointerTy ())) {
1504
+ if (BBI->isDebugOrPseudoInst ()) {
1506
1505
ScanInsts++;
1507
1506
continue ;
1508
1507
}
@@ -1623,8 +1622,7 @@ bool InstCombinerImpl::mergeStoreIntoSuccessor(StoreInst &SI) {
1623
1622
if (OtherBr->isUnconditional ()) {
1624
1623
--BBI;
1625
1624
// Skip over debugging info and pseudo probes.
1626
- while (BBI->isDebugOrPseudoInst () ||
1627
- (isa<BitCastInst>(BBI) && BBI->getType ()->isPointerTy ())) {
1625
+ while (BBI->isDebugOrPseudoInst ()) {
1628
1626
if (BBI==OtherBB->begin ())
1629
1627
return false ;
1630
1628
--BBI;
You can’t perform that action at this time.
0 commit comments