This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Remove isConstFalseVal in favour of using isNullOrNullSplat
Changes PlannedPublic

Authored by david-arm on Jan 31 2022, 8:25 AM.

Details

Summary

It turns out that isConstFalseVal doesn't add any value over just
using isNullOrNullSplat, so it makes sense to remove redundant
interfaces.

Diff Detail

Event Timeline

david-arm created this revision.Jan 31 2022, 8:25 AM
david-arm requested review of this revision.Jan 31 2022, 8:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2022, 8:25 AM

It would be nice if we could have a (scalable) vector test that uses SPLAT_VECTOR that exercises this function in some way.

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
3228–3229

It's clearly not guarded by any of the unit tests, but I think this case is now no longer supported? (i.e. if the value is 0b11111110, it should still return true if getBooleanContents returns UndefinedBooleanContent).

david-arm planned changes to this revision.Feb 1 2022, 7:14 AM