Skip to content

Commit c587292

Browse files
authored
Update NewGVN.cpp
1 parent 354af47 commit c587292

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Transforms/Scalar/NewGVN.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,12 +1646,6 @@ NewGVN::performSymbolicPredicateInfoEvaluation(BitCastInst *I) const {
16461646
// Evaluate read only and pure calls, and create an expression result.
16471647
NewGVN::ExprResult NewGVN::performSymbolicCallEvaluation(Instruction *I) const {
16481648
auto *CI = cast<CallInst>(I);
1649-
if (auto *II = dyn_cast<IntrinsicInst>(I)) {
1650-
auto *ReturnedValue = II->getReturnedArgOperand();
1651-
auto *MemDef = dyn_cast_or_null<MemoryDef>(getMemoryAccess(I));
1652-
if (ReturnedValue && !MemDef)
1653-
return ExprResult::some(createVariableOrConstant(ReturnedValue));
1654-
}
16551649

16561650
// FIXME: Currently the calls which may access the thread id may
16571651
// be considered as not accessing the memory. But this is

0 commit comments

Comments
 (0)