[PATCH] D155594: [InstCombine][NFC] Add tests for preserving !unreachable

Paweł Bylica via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 06:31:49 PDT 2023


chfast added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/select_meta.ll:352
+  %nb = xor i1 %b, true
+  %r = select i1 %na, i1 %nb, i1 false, !unpredictable !3
+  ret i1 %r
----------------
Here `!unpredictable` can be preserved because if `!a` is unpredictable the `a` is also. But `!prof` must be swapped.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155594/new/

https://reviews.llvm.org/D155594



More information about the llvm-commits mailing list