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 4eef3de commit 1fd014cCopy full SHA for 1fd014c
llvm/lib/Target/SPIRV/SPIRVStructurizer.cpp
@@ -543,12 +543,8 @@ class SPIRVStructurizer : public FunctionPass {
543
BasicBlock *RHSTarget =
544
BI->isConditional() ? BI->getSuccessor(1) : nullptr;
545
546
- Value *LHS = TargetToValue.count(LHSTarget) != 0
547
- ? TargetToValue.at(LHSTarget)
548
- : nullptr;
549
- Value *RHS = TargetToValue.count(RHSTarget) != 0
550
- ? TargetToValue.at(RHSTarget)
551
+ Value *LHS = TargetToValue.lookup(LHSTarget);
+ Value *RHS = TargetToValue.lookup(RHSTarget);
552
553
if (LHS == nullptr || RHS == nullptr)
554
return LHS == nullptr ? RHS : LHS;
0 commit comments