Skip to content

Commit

Permalink
prom speculate branches
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJecmen committed May 17, 2022
1 parent 89e0981 commit 2197f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rir/src/compiler/rir2pir/rir2pir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ Value* Rir2Pir::tryTranslate(rir::Code* srcCode, Builder& insert, Opcode* start,
auto asBool = insert(
new Identical(branchCondition, branchReason, PirType::val()));

if (!inPromise()) {
if (!inlining()) {
if (auto c = Instruction::Cast(branchCondition)) {
auto likely = c->typeFeedback().value;
if (likely == True::instance() ||
Expand Down

0 comments on commit 2197f32

Please sign in to comment.