[PATCH] D36063: [X86][InstCombine] Add basic constant folding support for BEXTR/BEXTRI intrinsics.

Ayman Musa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 00:40:32 PDT 2017


aymanmus added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:2251
 
+  case Intrinsic::x86_bmi_bextr_32:
+  case Intrinsic::x86_bmi_bextr_64:
----------------
Another case that is worth handling:
if (Shift == 0) then replace with simple (AND operand0, 2^length) instruction.



https://reviews.llvm.org/D36063





More information about the llvm-commits mailing list