This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Add one use check before calling SimplifyDemandedBits on the value in visitStore.
AbandonedPublic

Authored by craig.topper on Jan 28 2018, 9:26 PM.

Details

Reviewers
None
Summary

The SimplifyDemandedBits entry point used by DAGCombiner forces the AssumeSingleUse flag to be set to true preventing SimplifyDemandedBits from protecting this itself. Every other caller from DAGCombine pass the node being visited due to SimplifyDemandedBits so this isn't a problem for them.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 28 2018, 9:26 PM
craig.topper edited the summary of this revision. (Show Details)Jan 28 2018, 9:28 PM
craig.topper edited the summary of this revision. (Show Details)Jan 28 2018, 10:09 PM
craig.topper abandoned this revision.Jan 28 2018, 10:22 PM
craig.topper removed subscribers: javed.absar, llvm-commits.

Nevermind apparently I don't know which entry point DAGCombiner actually uses.