[PATCH] D13556: AMDGPU/SI: Eliminate tbuffer_store_* instruction with an undef value
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 10 15:46:01 PDT 2015
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM, although I think this should be done in an IR pass though
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:2015
@@ +2014,3 @@
+ // Delete undef stores
+ if (N->getOperand(2).getOpcode() == ISD::UNDEF)
+ return N->getOperand(0);
----------------
You can use isUndef()
http://reviews.llvm.org/D13556
More information about the llvm-commits
mailing list