[llvm] r362441 - [CFLGraph] Add FAdd to visitConstantExpr.
    Craig Topper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun  3 12:35:52 PDT 2019
    
    
  
Author: ctopper
Date: Mon Jun  3 12:35:52 2019
New Revision: 362441
URL: http://llvm.org/viewvc/llvm-project?rev=362441&view=rev
Log:
[CFLGraph] Add FAdd to visitConstantExpr.
This looks like an oversight as all the other binary operators are present.
Accidentally noticed while auditing places that need FNeg handling.
No test because as noted in the review it would be contrived and amount to "don't crash"
Differential Revision: https://reviews.llvm.org/D62790
Modified:
    llvm/trunk/lib/Analysis/CFLGraph.h
Modified: llvm/trunk/lib/Analysis/CFLGraph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFLGraph.h?rev=362441&r1=362440&r2=362441&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CFLGraph.h (original)
+++ llvm/trunk/lib/Analysis/CFLGraph.h Mon Jun  3 12:35:52 2019
@@ -555,6 +555,7 @@ template <typename CFLAA> class CFLGraph
       }
 
       case Instruction::Add:
+      case Instruction::FAdd:
       case Instruction::Sub:
       case Instruction::FSub:
       case Instruction::Mul:
    
    
More information about the llvm-commits
mailing list