[IRBuilder] add/use wrapper to create a generic compare based on predicate type; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 18 Jun 2020 19:44:02 +0000 (15:44 -0400)
committerSanjay Patel <spatel@rotateright.com>
Thu, 18 Jun 2020 19:47:06 +0000 (15:47 -0400)
commit46a285ad9e34dc6ccfd2530835687cac4cd67e3e
treeb48988547470653379ed8ea187a72518fae49077
parent50939c0a67619b77d085bfafb2cedda413d57b7a
[IRBuilder] add/use wrapper to create a generic compare based on predicate type; NFC

The predicate can always be used to distinguish between icmp and fcmp,
so we don't need to keep repeating this check in the callers.
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/lib/Transforms/Vectorize/VectorCombine.cpp