This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Look through casted selects to constant fold bin ops
ClosedPublic

Authored by arsenm on Jan 20 2020, 4:40 PM.

Details

Reviewers
rampitec
Summary

The promotion of the uniform select to i32 interfered with this fold.

Diff Detail

Event Timeline

arsenm created this revision.Jan 20 2020, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2020, 4:40 PM
rampitec accepted this revision.Jan 20 2020, 5:21 PM

LGTM

llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
534

typo: weer

This revision is now accepted and ready to land.Jan 20 2020, 5:21 PM