[PATCH] D52263: [InstCombine] Ignore vector compares in foldGEPIcmp()
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 19 06:14:02 PDT 2018
lebedev.ri added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:978-980
+ Value *Replacement = Builder.getInt1(ICmpInst::isTrueWhenEqual(Cond));
+ // Ignore vector compares.
+ if (Replacement->getType() == I.getType())
----------------
Can't you use `Constant::getIntegerValue(I.getType(), ICmpInst::isTrueWhenEqual(Cond))`?
Repository:
rL LLVM
https://reviews.llvm.org/D52263
More information about the llvm-commits
mailing list