[PATCH] D62790: [CFLGraph] Add FAdd to visitConstantExpr.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 1 21:54:05 PDT 2019


craig.topper created this revision.
craig.topper added a reviewer: george.burgess.iv.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This looks like an oversight as all the other binary operators are present.

Accidentally noticed while auditing places that need FNeg handling.

Not sure how to test this.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62790

Files:
  llvm/lib/Analysis/CFLGraph.h


Index: llvm/lib/Analysis/CFLGraph.h
===================================================================
--- llvm/lib/Analysis/CFLGraph.h
+++ llvm/lib/Analysis/CFLGraph.h
@@ -555,6 +555,7 @@
       }
 
       case Instruction::Add:
+      case Instruction::FAdd:
       case Instruction::Sub:
       case Instruction::FSub:
       case Instruction::Mul:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62790.202584.patch
Type: text/x-patch
Size: 353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190602/031bcc7e/attachment.bin>


More information about the llvm-commits mailing list