[PATCH] D64038: [IR][PatternMatch] Introduce m_NegatedPower2() matcher

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 04:03:15 PDT 2019


spatel added inline comments.


================
Comment at: llvm/unittests/IR/PatternMatch.cpp:485
+  Value *CIntMin = IRB.getInt64(APSInt::getSignedMinValue(64).getSExtValue());
+  Value *CNegIntMin = ConstantExpr::getNeg(cast<Constant>(C128));
+
----------------
Why is CNegIntMin negating C128 rather than CIntMin?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D64038





More information about the llvm-commits mailing list