[PATCH] D145299: [InstCombine] Generate better code for std::bit_ceil

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 12:40:25 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:3276
+  if (!match(SI.getCondition(),
+             m_ICmp(Pred, m_Value(Cond0), m_ConstantInt(Cond1))))
+    return nullptr;
----------------
All these m_ConstantInt should be m_APInt.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145299



More information about the llvm-commits mailing list