[PATCH] D16380: Introduce ConstantFoldCastOperand function and migrate some callers of ConstantFoldInstOperands to use it. NFC.

Manuel Jacob via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 16:11:51 PST 2016


mjacob created this revision.
mjacob added a reviewer: eddyb.
mjacob added subscribers: llvm-commits, dblaikie.

Although this is a slight cleanup on its own, the main motivation is to
enable further simplifications to the constant folding API.

All remaining ConstantFoldInstOperands callers simplify an instruction,
and can be changed to use ConstantFoldInstruction instead.  This will be
done in follow-up commits.

http://reviews.llvm.org/D16380

Files:
  include/llvm/Analysis/ConstantFolding.h
  lib/Analysis/ConstantFolding.cpp
  lib/Analysis/InstructionSimplify.cpp
  lib/CodeGen/MachineFunction.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16380.45460.patch
Type: text/x-patch
Size: 8731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160121/6388d9f3/attachment-0001.bin>


More information about the llvm-commits mailing list