[PATCH] D24924: [PPC] Better codegen for AND, ANY_EXT, SRL sequence

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 10:15:11 PDT 2016


amehsan added inline comments.

================
Comment at: lib/Target/PowerPC/PPCISelDAGToDAG.cpp:2639
@@ -2638,1 +2638,3 @@
 
+      auto Op0 = Val.getOperand(0);
+      if (Val.getOpcode() == ISD::ANY_EXTEND && Op0.getOpcode() == ISD::SRL &&
----------------
I am not sure if this is always legal. Will check that.


https://reviews.llvm.org/D24924





More information about the llvm-commits mailing list