[PATCH] D29584: AMDGPU: Replace disabled exp inputs with undef

Marek Olšák via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 13 14:47:30 PST 2017


mareko added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:3121
+      if ((EnBits & (1 << I)) == 0) {
+        Value *Src = II->getArgOperand(I + 2);
+        if (!isa<UndefValue>(Src)) {
----------------
If IsCompr == true, EnBits contains 0x3 if the 1st channel is exported, 0xc if the second channel is exported, and 0xf if the first 2 channels are exported.


https://reviews.llvm.org/D29584





More information about the llvm-commits mailing list