We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 920079b commit efa71acCopy full SHA for efa71ac
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -21477,6 +21477,14 @@ bool RISCVTargetLowering::canCreateUndefOrPoisonForTargetNode(
21477
21478
// TODO: Add more target nodes.
21479
switch (Op.getOpcode()) {
21480
+ case RISCVISD::SLLW:
21481
+ case RISCVISD::SRAW:
21482
+ case RISCVISD::SRLW:
21483
+ case RISCVISD::RORW:
21484
+ case RISCVISD::ROLW:
21485
+ // Only the lower 5 bits of RHS are read, guaranteeing the rotate/shift
21486
+ // amount is bounds.
21487
+ return false;
21488
case RISCVISD::SELECT_CC:
21489
// Integer select_cc cannot create poison.
21490
// TODO: What are the FP poison semantics?
0 commit comments