Issue 149285
Summary [RISCV] canCreateUndefOrPoisonForTargetNode - can ROLW/RORW + SLLW/SRAW/SRLW create undef/poison?
Labels backend:RISC-V
Assignees
Reporter RKSimon
    AFAICT the RISCV spec states the rotate/shift amounts are always `amt & 31` modulo so there are no out of bound shift 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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to