[PATCH] D31407: [PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 01:01:57 PDT 2017
nemanjai added inline comments.
================
Comment at: lib/Target/PowerPC/PPCBoolRetToInt.cpp:93
+ Value *translate(Value *V) {
+ Type *IntTy = Type::getInt32Ty(V->getContext());
+ if (ST && ST->isPPC64())
----------------
Just a personal preference nit...
Maybe turn this into a conditional operator for the initialization (rather than the assignment in the if).
https://reviews.llvm.org/D31407
More information about the llvm-commits
mailing list