]> granicus.if.org Git - llvm/commit
[IR] Reimplement FPMathOperator::classof as a whitelist.
authorJay Foad <jay.foad@gmail.com>
Fri, 18 Oct 2019 16:16:36 +0000 (16:16 +0000)
committerJay Foad <jay.foad@gmail.com>
Fri, 18 Oct 2019 16:16:36 +0000 (16:16 +0000)
commit31bbace478f4a74dbd0d14162679e551cac0279e
tree9012aa00d6e6049dec02d19fbf788e610d9985a0
parent66b019de1013a135cbfe3da77c3bbd1deeac0994
[IR] Reimplement FPMathOperator::classof as a whitelist.

Summary:
This makes it much easier to verify that the implementation matches the
documentation. It uncovered a bug in the unit tests where we were
accidentally setting fast math flags on a load instruction.

Reviewers: spatel, wristow, arsenm, hfinkel, aemerson, efriedma, cameron.mcinally, mcberg2017, jmolloy

Subscribers: wdng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69176

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375252 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Operator.h
unittests/IR/IRBuilderTest.cpp