[PATCH] D42260: [JumpThreading] Don't select an edge that we know we can't thread

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 14:19:26 PST 2018


haicheng added inline comments.


================
Comment at: test/Transforms/JumpThreading/header-succ.ll:40
+
+; We also need to check the opposite order of the branches, in the switch
+; instruction because jump-threading relies on that to decide which edge to
----------------
It seems to me that two test cases are identical.  Did you forget flip the branch condition or destinations?


Repository:
  rL LLVM

https://reviews.llvm.org/D42260





More information about the llvm-commits mailing list