[PATCH] D29075: Canonicalize guards for NOT OR condition

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 09:54:37 PST 2017


apilipenko added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:2897-2900
+      Builder->CreateCall(GuardIntrinsic, Builder->CreateNot(A),
+                          {DeoptOB}, II->getName());
+      Builder->CreateCall(GuardIntrinsic, Builder->CreateNot(B),
+                          {DeoptOB}, II->getName());
----------------
We might have a guard with non-standard calling convention. I guess you'll need to set the cc for new guards as well.


https://reviews.llvm.org/D29075





More information about the llvm-commits mailing list