OSDN Git Service

[Verifier] Add checks for masked.load and masked.store intrinsics
authorPhilip Reames <listmail@philipreames.com>
Tue, 9 Feb 2016 21:43:12 +0000 (21:43 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 9 Feb 2016 21:43:12 +0000 (21:43 +0000)
commit6d94591fc9d6c88a5e939104341f36e69b650d87
tree2404b9c96445acf0e8857addde1a29e025104e44
parent068c0ce5f10efdba75c4d3c6655bb61d82f3a4f5
[Verifier] Add checks for masked.load and masked.store intrinsics

While trying to track down what appears to be a LoopVectorizer bug, I noticed that we had no validation of the correctness of calls emitted to @llvm.masked.load and @llvm.masked.store.  This meant malformed IR was showing up much much later than it should.  Hopefully, having Verifier rules in place will make this easier to isolate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260296 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp