HomePhabricator

[TargetLowering] Use getBoolConstant instead of assuming zero or one for…

Authored by craig.topper on Jan 22 2021, 12:19 AM.

Description

[TargetLowering] Use getBoolConstant instead of assuming zero or one for boolean contents.

Noticed while I was touching other nearby code. I don't have a
test where this matters because the targets I work on
use zero or one boolean contents. And the tests cases I've seen
this fire on happen before type legalization where the result type
is MVT::i1 so the distinction doesn't matter.

Details

Committed
craig.topperJan 22 2021, 12:26 AM
Parents
rG75f10c957477: NFC: Remove simple_ilist comment mentioning ilist/iplist allocating
Branches
Unknown
Tags
Unknown