[PATCH] D122081: Add DXILPrepare CodeGen pass
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 20 05:43:11 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Target/DirectX/DXILPrepare.cpp:76
+ Value *Zero = ConstantFP::get(In->getType(), 0.0);
+ I->replaceAllUsesWith(Builder.CreateFSub(Zero, In));
+ I->eraseFromParent();
----------------
Well this is a semantically wrong substitution
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122081/new/
https://reviews.llvm.org/D122081
More information about the llvm-commits
mailing list