This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Factor out duplicated logic for an extload combine, NFC
ClosedPublic

Authored by vsk on Apr 26 2018, 5:09 PM.

Details

Summary

Part of the logic for combining (zext (load ...)) and (sext (load ...))
is duplicated. This creates problems because bugs in one version have to
be fixed again in the other version.

To address this, as a first step, I've extracted the duplicate logic
into a helper. I'll fix the debug location bug in the helper and
eliminate the copy of its logic in a followup.

Part of: llvm.org/PR37262

Diff Detail

Repository
rL LLVM

Event Timeline

vsk created this revision.Apr 26 2018, 5:09 PM
aprantl accepted this revision.Apr 26 2018, 5:25 PM
This revision is now accepted and ready to land.Apr 26 2018, 5:25 PM
vsk retitled this revision from [DAGCombiner] Factor out duplicated logic for an extload combine, NFC (3/N) to [DAGCombiner] Factor out duplicated logic for an extload combine, NFC.May 1 2018, 12:57 PM
This revision was automatically updated to reflect the committed changes.