[PATCH] D71938: [SCCP] Use constant ranges for casts.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 17:31:17 PST 2020


efriedma added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/SCCP.cpp:801
+    ConstantRange Res =
+        OpRange.castOp(I.getOpcode(), DestTy->isPointerTy()
+                                          ? DL.getPointerSizeInBits()
----------------
`DL.getTypeSizeInBits(DestTy)`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71938





More information about the llvm-commits mailing list