[PATCH] D49507: [Power9] Add __float128 support in the backend for bitcast to a i128

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 08:01:34 PDT 2018


nemanjai added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:14331
+
+  // BITCAST feeding SRL feeding TRUNCATE
+  if (Op0.getOpcode() == ISD::SRL) {
----------------
I think this can be further simplified and the duplicated code can be removed by essentially "looking through" the right shift and updating the element you need to extract.


https://reviews.llvm.org/D49507





More information about the llvm-commits mailing list