[PATCH] D61419: Support FNeg ConstantExpr folding

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 07:58:23 PDT 2019


cameron.mcinally updated this revision to Diff 198005.
cameron.mcinally added a comment.

Remove misplaced test/CodeGen tests.

Also add support for UnOps to `ConstantFoldInstOperandsImpl(...):lib/Analysis/ConstantFolding.cpp`.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61419/new/

https://reviews.llvm.org/D61419

Files:
  llvm/include/llvm/Analysis/ConstantFolding.h
  llvm/include/llvm/Analysis/InstructionSimplify.h
  llvm/include/llvm/IR/PatternMatch.h
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/IR/ConstantFold.cpp
  llvm/lib/IR/ConstantFold.h
  llvm/lib/IR/Constants.cpp
  llvm/test/Analysis/ConstantFolding/fneg.ll
  llvm/test/Transforms/InstCombine/fneg.ll
  llvm/test/Transforms/InstCombine/fsub.ll
  llvm/test/Transforms/InstCombine/inselt-binop.ll
  llvm/test/Transforms/Reassociate/crash2.ll
  llvm/unittests/IR/ConstantsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61419.198005.patch
Type: text/x-patch
Size: 20287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190503/ba407801/attachment.bin>


More information about the llvm-commits mailing list