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 ea7c0db commit b63502cCopy full SHA for b63502c
llvm/lib/Target/DirectX/DXILLegalizePass.cpp
@@ -522,6 +522,7 @@ legalizeGetHighLowi64Bytes(Instruction &I,
522
BitCast->getSrcTy()->isIntegerTy(64)) {
523
ToRemove.push_back(BitCast);
524
ReplacedValues[BitCast] = BitCast->getOperand(0);
525
+ return;
526
}
527
528
@@ -534,6 +535,8 @@ legalizeGetHighLowi64Bytes(Instruction &I,
534
535
IRBuilder<> Builder(&I);
536
assert(dyn_cast<BitCastInst>(Extract->getVectorOperand()));
537
auto *Replacement = ReplacedValues[Extract->getVectorOperand()];
538
+ assert(Replacement && "The BitCast replacement should have been set "
539
+ "before working on ExtractElementInst.");
540
if (Idx == 0) {
541
Value *LowBytes = Builder.CreateTrunc(
542
Replacement, Type::getInt32Ty(I.getContext()));
0 commit comments