HomePhabricator

Clear NewGEPBases after finish using them in CodeGenPrep pass

Authored by yuyichao on Nov 23 2020, 4:11 PM.

Description

Clear NewGEPBases after finish using them in CodeGenPrep pass

AFAICT all other set/map are correctly cleared in runOnFunction.

With assertion enabled this causes a crash when the module is freed and potentially if a later pass delete the instruction (not observed in real world though). Without assertion this can potentially cause confusing result when running on a new Function/Module.

Reviewed By: loladiro

Differential Revision: https://reviews.llvm.org/D84031

Details

Committed
yuyichaoNov 24 2020, 9:12 AM
Reviewer
loladiro
Differential Revision
D84031: Clear NewGEPBases after finish using them in CodeGenPrep pass
Parents
rG25777080549b: [test] Merge parallel_region_merging{,_legacy_pm}.ll
Branches
Unknown
Tags
Unknown