Consider icmp ne and icmp eq assumption intrinsic calls when checking
for known non-equality.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 3150 | Equality check and Operand checks are probably faster than valid assume check. | |
No real compile time regressions from this:
https://llvm-compile-time-tracker.com/compare.php?from=facaede5ae43806d3123c18823cc173a4b3970ec&to=f8c93e123c527366c18f3a0b2b02b8cd629ce757&stat=instructions:uP
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 3164 | In generaly I'm not sure how valuable this is. Does it affect any of the codes in LLVM test suite or any common patterns? | |
| llvm/test/Analysis/ValueTracking/known-non-equal.ll | ||
| 1857 | Can you pre-commit tests. | |
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 3164 | The original use case vanished due to switching to a calculateKnownBits-approach. | |
Equality check and Operand checks are probably faster than valid assume check.