[PATCH] D9397: llvm.noalias - computeKnownBits should look through them
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 10 00:49:43 PDT 2016
majnemer added a subscriber: majnemer.
================
Comment at: lib/Analysis/ValueTracking.cpp:1291-1293
@@ -1290,2 +1290,5 @@
default: break;
+ case Intrinsic::noalias:
+ computeKnownBits(I->getOperand(0), KnownZero, KnownOne, Depth + 1, Q);
+ break;
case Intrinsic::bswap:
----------------
I wonder if it'd make sense to make this intrinsic's pointer parameter as `returned` and then teach `computeKnownBitsFromOperator` how to recurse onto a `returned` parameter.
http://reviews.llvm.org/D9397
More information about the llvm-commits
mailing list