Skip to content

Commit

Permalink
Merge pull request rust-lang#161 from ptersilie/ashr_exact
Browse files Browse the repository at this point in the history
Ignore `exact` keywords for binary operations.
  • Loading branch information
vext01 authored May 17, 2024
2 parents ba5ac65 + 780a321 commit e36b91b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,19 +373,16 @@ class YkIRWriter {

// We don't yet support:
// - fast math flags (for float operations).
// - the `exact` keyword
// - vector variants
if ((isa<FPMathOperator>(I) && (I->getFastMathFlags().any())) ||
(isa<PossiblyExactOperator>(I) && I->isExact()) ||
I->getType()->isVectorTy()) {
serialiseUnimplementedInstruction(I, FLCtxt, BBIdx, InstIdx);
return;
}

// Note that we do nothing with the `nsw` and `nuw` (no {signed,unsigned}
// wrap) keywords, which may generate poison values. If they do, the rules
// of deferred UB allow us to make any value we wish, including (as
// we do) the wrapped value.
// wrap), and `exact` keywords, which may generate poison values. If they
// do, the rules of deferred UB allow us to make any value we wish.

// opcode:
serialiseOpcode(OpCodeBinOp);
Expand Down

0 comments on commit e36b91b

Please sign in to comment.