This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Handle constant range [0,1) in lowerRangeToAssertZExt
ClosedPublic

Authored by scott.linder on Oct 30 2018, 1:31 PM.

Details

Summary

lowerRangeToAssertZExt currently relies on something like EarlyCSE having eliminated the constant range [0,1). At -O0 this leads to an assert.

Diff Detail

Repository
rL LLVM

Event Timeline

scott.linder created this revision.Oct 30 2018, 1:31 PM
This revision is now accepted and ready to land.Oct 30 2018, 1:33 PM
nhaehnle added inline comments.Oct 31 2018, 4:26 AM
test/CodeGen/AMDGPU/zext-lid.ll
49 ↗(On Diff #171772)

Needs an OPT-LABEL

scott.linder marked an inline comment as done.

Add lit LABEL for test case

This revision was automatically updated to reflect the committed changes.