[PATCH] D94874: [InstCombine] Transform abs pattern using multiplication to abs intrinsic (PR45691)
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 17 07:55:53 PST 2021
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:375
+ Abs->takeName(&I);
+ return replaceInstUsesWith(I, Abs);
+ }
----------------
xbolva00 wrote:
> nikic wrote:
> > Doesn't just `return Builder.CreateBinaryIntrinsic` work here?
> void llvm::SymbolTableListTraits<ValueSubClass>::addNodeToList(ValueSubClass*) [with ValueSubClass = llvm::Instruction]: Assertion `!V->getParent() && "Value already in a container!!"' failed.
>
Oh right. Thanks for checking.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94874/new/
https://reviews.llvm.org/D94874
More information about the llvm-commits
mailing list