Skip to content

Commit dea5baf

Browse files
committed
[Transforms][Scalar] Delete unused code
1 parent 49e9c62 commit dea5baf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Transforms/Scalar/BDCE.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ static bool bitTrackingDCE(Function &F, DemandedBits &DB) {
9797
if (I.mayHaveSideEffects() && I.use_empty())
9898
continue;
9999

100-
if (I.isVolatile() && !I.isPHINodeOrSelectInstOrSwitchInst())
101-
continue;
102-
103100
// Remove instructions that are dead, either because they were not reached
104101
// during analysis or have no demanded bits.
105102
if (DB.isInstructionDead(&I) ||

0 commit comments

Comments
 (0)