Skip to content

[RISCV] canCreateUndefOrPoisonForTargetNode - can ROLW/RORW + SLLW/SRAW/SRLW create undef/poison? #149285

@RKSimon

Description

@RKSimon

AFAICT the RISCV spec states the rotate/shift amounts are always amt & 31 modulo so there are no out of bound amounts that can create poison.

We already say ISD::ROTL/ROTR can't create undef/poison for the same reason, so RISCISD::ROLW/RORW should be OK, but its whether everyone is happy to handle SLLW/SRAW/SRLW similarly.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions