[PATCH] D35975: AMDGPU: Look through a bitcast user of an out argument
    Stanislav Mekhanoshin via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jul 27 21:40:39 PDT 2017
    
    
  
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp:386
+            DL->getTypeSizeInBits(Val->getType())) {
+          assert(isVec3ToVec4Shuffle(EffectiveEltTy, Val->getType()));
+          Val = B.CreateShuffleVector(Val, UndefValue::get(Val->getType()),
----------------
That is probably legal for a source to cast pointer argument to anything. Looks like you need to check if that is a special case you are looking for rather than asserting.
https://reviews.llvm.org/D35975
    
    
More information about the llvm-commits
mailing list