This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Do binop of select of constant fold in AMDGPUCodeGenPrepare
ClosedPublic

Authored by arsenm on Jan 19 2020, 1:15 PM.

Details

Reviewers
rampitec
Summary

DAGCombiner does this, but divisions expanded here miss this
optimization. Since 67aa18f165640374cf0e0a6226dc793bbda6e74f,
divisions have been expanded here and missed out on this
optimization. Avoids test regressions in a future patch.

Diff Detail

Event Timeline

arsenm created this revision.Jan 19 2020, 1:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2020, 1:15 PM
arsenm updated this revision to Diff 239011.Jan 19 2020, 1:49 PM

Preserve FMF

This revision is now accepted and ready to land.Jan 20 2020, 11:20 AM