[PATCH] D16144: NFC. Move getAlignment helper function from ValueTracking to Value class.

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 14:10:23 PST 2016


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

LGTM w/very minor comment.


================
Comment at: lib/IR/Value.cpp:543
@@ +542,3 @@
+  } else if (const Argument *A = dyn_cast<Argument>(this)) {
+    Align = A->getType()->isPointerTy() ? A->getParamAlignment() : 0;
+
----------------
This ternary constant folds.


http://reviews.llvm.org/D16144





More information about the llvm-commits mailing list