[PATCH] D32423: Constant fold barriers of null and undef
David Majnemer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 13:38:02 PDT 2017
majnemer added inline comments.
================
Comment at: lib/Analysis/ConstantFolding.cpp:1779-1783
+ if (isa<ConstantPointerNull>(Operands[0])) {
+ if (IntrinsicID == Intrinsic::invariant_group_barrier)
return Operands[0];
return nullptr;
}
----------------
Isn't this only valid if the address space is zero?
https://reviews.llvm.org/D32423
More information about the llvm-commits
mailing list