[PATCH] D54869: [InstCombine] Determine demanded and known bits for funnel shifts

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 24 07:24:28 PST 2018


nikic marked an inline comment as done.
nikic added inline comments.


================
Comment at: test/Transforms/InstCombine/fsh.ll:292
+; CHECK-NEXT:    [[TMP1:%.*]] = lshr i33 [[X:%.*]], 4
+; CHECK-NEXT:    [[R:%.*]] = and i33 [[TMP1]], 7
 ; CHECK-NEXT:    ret i33 [[R]]
----------------
This first simplifies to (x << 26) >> 30, which is then reduced to (x >> 4) & 7.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54869/new/

https://reviews.llvm.org/D54869





More information about the llvm-commits mailing list