[llvm-dev] getelementptr confusion

Celine via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 4 20:03:12 PST 2019


Hi,
The original scalar GEP:   

%scevgep = getelementptr i16, i16* %A, i32 %conv12



After adding bitcast vector it:  

<1 x i16>*%scevgep = getelementptr <1 x i16>,  i16* %A, <1 x i32> %conv12



I want to scalar them back for gelementptr address calculation, then vector the lowered ISDNode again.  

void SelectionDAGBuilder::visitGetElementPtr(const User &I)  only supply const interface which make this hack very hard.


Any suggestion?


--
Best Regards
Celine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191105/2776809a/attachment.html>


More information about the llvm-dev mailing list